aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Gower <graham.gower@gmail.com>2010-12-01 13:40:07 +1030
committerKhem Raj <raj.khem@gmail.com>2010-12-11 02:02:00 -0800
commite5a90de1dd99518a31618cabe1307ace9a0d7c9f (patch)
tree5a27230de6a634b9d2f3218c512e1bd674a067dc
parent40969464c1d7da4044f8a85569a2e1024a54eb5b (diff)
downloadopenembedded-e5a90de1dd99518a31618cabe1307ace9a0d7c9f.zip
openembedded-e5a90de1dd99518a31618cabe1307ace9a0d7c9f.tar.gz
openembedded-e5a90de1dd99518a31618cabe1307ace9a0d7c9f.tar.bz2
debianutils.inc: Fix do_install for DISTRO=micro.
mv: `/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/debianutils-2.30-r2/image/bin/run-parts.debianutils' and `/mnt/oe/tmp/work/mipsel-oe-linux-uclibc/debianutils-2.30-r2/image/bin/run-parts.debianutils' are the same file Signed-off-by: Graham Gower <graham.gower@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes/debianutils/debianutils.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/recipes/debianutils/debianutils.inc b/recipes/debianutils/debianutils.inc
index 9d32606..1ad766d 100644
--- a/recipes/debianutils/debianutils.inc
+++ b/recipes/debianutils/debianutils.inc
@@ -11,11 +11,13 @@ do_install_append() {
for app in ${D}${sbindir}/* ${D}${bindir}/*; do
mv $app $app.${PN}
done
- # Debian places some utils into ${base_bindir} as does busybox
- install -d ${D}${base_bindir}
- for app in run-parts.${PN} tempfile.${PN}; do
- mv ${D}${bindir}/$app ${D}${base_bindir}/$app
- done
+ if [ "${base_bindir}" != "${bindir}" ]; then
+ # Debian places some utils into ${base_bindir} as does busybox
+ install -d ${D}${base_bindir}
+ for app in run-parts.${PN} tempfile.${PN}; do
+ mv ${D}${bindir}/$app ${D}${base_bindir}/$app
+ done
+ fi
}
pkg_prerm_${PN} () {