Patchwork [3/6] distutils: remove empty datadir/share after it's content is moved to datadir

login
register
mail settings
Submitter Martin Jansa
Date Dec. 4, 2012, 1:31 a.m.
Message ID <a67e1a9303addf463a56ad1d31fe25873453f159.1354584580.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/40099/
State Accepted
Commit 10457e343b27e63b35e0278b00e9c25106b0cc1b
Headers show

Comments

Martin Jansa - Dec. 4, 2012, 1:31 a.m.
* fixes a lot of QA warnings about unpackaged /usr/share/share

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/distutils.bbclass | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index c73b24f..552e5f3 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -64,6 +64,7 @@  distutils_do_install() {
         #
         if test -e ${D}${datadir}/share; then
             mv -f ${D}${datadir}/share/* ${D}${datadir}/
+            rmdir ${D}${datadir}/share
         fi
 }