[oe-commits] Michael 'Mickey' Lauer : distutils.bbclass: only remove if existing
GIT User account
git at amethyst.openembedded.net
Sat Jan 17 00:04:32 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4e3bfb1faf20ef116f8fb9c4fa5bef45b9428280
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4e3bfb1faf20ef116f8fb9c4fa5bef45b9428280
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Sat Jan 17 01:03:37 2009 +0100
distutils.bbclass: only remove if existing
---
classes/distutils.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index 375ffff..ea4184b 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -51,7 +51,7 @@ distutils_do_install() {
done
fi
- if test -e ${D}${sbindir} ; then
+ if test -e ${D}${sbindir}; then
for i in ${D}${sbindir}/* ; do \
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
@@ -62,7 +62,9 @@ distutils_do_install() {
#
# FIXME: Bandaid against wrong datadir computation
#
- mv -f ${D}${datadir}/share/* ${D}${datadir}/
+ if test -e ${D}${datadir}/share; then
+ mv -f ${D}${datadir}/share/* ${D}${datadir}/
+ fi
}
EXPORT_FUNCTIONS do_compile do_install
More information about the Openembedded-commits
mailing list