From b18f1216b0d3654f7b6fb3752eda1dd82a294f3d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 22 Jul 2010 18:26:07 +0100 Subject: package_deb.bbclass: Make sure the controldir is always cleaned out Signed-off-by: Richard Purdie --- meta/classes/package_deb.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/package_deb.bbclass') diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 38740f1cc..14498db83 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") -- cgit v1.2.3