diff options
-rw-r--r-- | meta/recipes-extended/tar/tar.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc index b339c43385..93e4da114b 100644 --- a/meta/recipes-extended/tar/tar.inc +++ b/meta/recipes-extended/tar/tar.inc | |||
@@ -22,10 +22,12 @@ do_install () { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | do_install_append_class-target() { | 24 | do_install_append_class-target() { |
25 | install -d ${D}${base_bindir} | 25 | if [ "${base_bindir}" != "${bindir}" ]; then |
26 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar | 26 | install -d ${D}${base_bindir} |
27 | mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar | 27 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar |
28 | rmdir ${D}${bindir}/ | 28 | mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar |
29 | rmdir ${D}${bindir}/ | ||
30 | fi | ||
29 | } | 31 | } |
30 | 32 | ||
31 | PACKAGES =+ "${PN}-rmt" | 33 | PACKAGES =+ "${PN}-rmt" |