1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

classes: Sync various tweaks from OE

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2643 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-09-01 23:49:12 +00:00
parent 8d342dc056
commit 63b739f0fe
4 changed files with 13 additions and 11 deletions
+1 -2
View File
@@ -136,7 +136,7 @@ python do_package_deb () {
del g[g.index('./DEBIAN')]
except ValueError:
pass
if not g and not bb.data.getVar('ALLOW_EMPTY', localdata):
if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1":
from bb import note
note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1)))
unlockfile(lf)
@@ -253,7 +253,6 @@ python do_package_deb () {
os.rmdir(controldir)
except OSError:
pass
del localdata
unlockfile(lf)
}