diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2009-01-17 01:03:37 +0100 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2009-01-17 01:03:37 +0100 |
commit | 4e3bfb1faf20ef116f8fb9c4fa5bef45b9428280 (patch) | |
tree | 6651918ce2659dda383b6c7c68bc595dab022024 /classes | |
parent | 5a0fecab4a7a17ab7218e522c2750f0fb8c9aa45 (diff) |
distutils.bbclass: only remove if existing
Diffstat (limited to 'classes')
-rw-r--r-- | classes/distutils.bbclass | 6 |
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 |