summaryrefslogtreecommitdiff
path: root/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2009-01-17 01:03:37 +0100
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2009-01-17 01:03:37 +0100
commit4e3bfb1faf20ef116f8fb9c4fa5bef45b9428280 (patch)
tree6651918ce2659dda383b6c7c68bc595dab022024 /classes/distutils.bbclass
parent5a0fecab4a7a17ab7218e522c2750f0fb8c9aa45 (diff)
distutils.bbclass: only remove if existing
Diffstat (limited to 'classes/distutils.bbclass')
-rw-r--r--classes/distutils.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index 375ffff4db..ea4184b235 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