package_deb.bbclass: Make sure the controldir is always cleaned out

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-07-22 18:26:07 +01:00
parent 7459068915
commit b18f1216b0
1 changed files with 1 additions and 0 deletions

View File

@ -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")