distutils.bbclass: only remove if existing
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 17 Jan 2009 00:03:37 +0000 (01:03 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 17 Jan 2009 00:03:37 +0000 (01:03 +0100)
classes/distutils.bbclass

index 375ffff..ea4184b 100644 (file)
@@ -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