summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-22 18:26:07 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-22 18:26:54 +0100
commitb18f1216b0d3654f7b6fb3752eda1dd82a294f3d (patch)
tree6e5a6aee2b138c6c4dc5a5b832182da1c07134df
parent7459068915a1e085179acd721dbe39f4603c973d (diff)
downloadopenembedded-core-b18f1216b0d3654f7b6fb3752eda1dd82a294f3d.tar.gz
openembedded-core-b18f1216b0d3654f7b6fb3752eda1dd82a294f3d.tar.bz2
openembedded-core-b18f1216b0d3654f7b6fb3752eda1dd82a294f3d.zip
package_deb.bbclass: Make sure the controldir is always cleaned out
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/classes/package_deb.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 38740f1cc9..14498db83f 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -242,6 +242,7 @@ python do_package_deb () {
os.chdir(basedir)
ret = os.system("PATH=\"%s\" %s dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, True), bb.data.getVar("FAKEROOT", localdata, True) or "fakeroot", root, pkgoutdir))
if ret != 0:
+ bb.utils.prunedir(controldir)
bb.utils.unlockfile(lf)
raise bb.build.FuncFailed("dpkg-deb execution failed")