package.bbclass: do_package[deptask] only needs to be set when PACKAGES != ""

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1619 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2007-05-09 09:54:54 +00:00
parent ebb524517a
commit 9697c0ca8b
1 changed files with 3 additions and 2 deletions

View File

@ -130,6 +130,9 @@ python () {
for dep in (bb.data.getVar('PACKAGE_EXTRA_DEPENDS', d, True) or "").split():
deps += " %s:do_populate_staging" % dep
bb.data.setVarFlag('do_package_write', 'depends', deps, d)
# shlibs requires any DEPENDS to have already packaged for the *.list files
bb.data.setVarFlag('do_package', 'deptask', 'do_package', d)
}
# file(1) output to match to consider a file an unstripped executable
@ -899,8 +902,6 @@ python package_do_package () {
for f in (bb.data.getVar('PACKAGEFUNCS', d, 1) or '').split():
bb.build.exec_func(f, d)
}
# shlibs requires any DEPENDS to have already packaged for the *.list files
do_package[deptask] = "do_package"
do_package[dirs] = "${D}"
addtask package before do_build after do_install