summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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