diff options
author | Richard Purdie <richard@openedhand.com> | 2008-08-18 07:58:39 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-08-18 07:58:39 +0000 |
commit | c87b3a87aa143eb2166da910b8553742617339a9 (patch) | |
tree | f0ff04c929c884f43583ebe42ee7a8c0870793be /meta/classes/package_deb.bbclass | |
parent | 5ca566349c46362be64fc6a88ed88ad3ad601069 (diff) | |
download | openembedded-core-c87b3a87aa143eb2166da910b8553742617339a9.tar.gz openembedded-core-c87b3a87aa143eb2166da910b8553742617339a9.tar.bz2 openembedded-core-c87b3a87aa143eb2166da910b8553742617339a9.tar.xz openembedded-core-c87b3a87aa143eb2166da910b8553742617339a9.zip |
package_ipk/package_deb.bbclass: Make sure control files are properly removed fixing problems with files leaking into packages. Use core bitbake function for directory pruning
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5066 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 8f5fedada..28e67fcc9 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -247,17 +247,7 @@ python do_package_deb () { bb.utils.unlockfile(lf) raise bb.build.FuncFailed("dpkg-deb execution failed") - for script in ["preinst", "postinst", "prerm", "postrm", "control" ]: - scriptfile = os.path.join(controldir, script) - try: - os.remove(scriptfile) - except OSError: - pass - try: - os.rmdir(controldir) - except OSError: - pass - + bb.utils.prunedir(controldir) bb.utils.unlockfile(lf) } |