summaryrefslogtreecommitdiff
path: root/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-03-11 13:48:44 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-03-11 13:48:44 +0000
commit7e8dbb134a4c8488fe533b8611528637930e0a02 (patch)
tree6408bb8eb701cc38d96deef0090cdbbd831b6c21 /classes/package_deb.bbclass
parent84c5f5d53e3417913c75df26cf33678efe0a148e (diff)
parent6b6cf4dab96836c4c814ffc79a05fc12ff113a62 (diff)
merge of '1458e9ca6c6d9b78bff4114c4a3b09c7aa6b7a8e'
and 'df907de16e9f058a9d98b4ee458c93e7c4965a9c'
Diffstat (limited to 'classes/package_deb.bbclass')
-rw-r--r--classes/package_deb.bbclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass
index 22b6166685..82a2d53312 100644
--- a/classes/package_deb.bbclass
+++ b/classes/package_deb.bbclass
@@ -88,10 +88,6 @@ python do_package_deb () {
return
bb.mkdirhier(dvar)
- packages = bb.data.getVar('PACKAGES', d, 1)
- if not packages:
- bb.debug(1, "PACKAGES not defined, nothing to package")
- return
tmpdir = bb.data.getVar('TMPDIR', d, 1)
@@ -102,6 +98,7 @@ python do_package_deb () {
bb.debug(1, "No packages; nothing to do")
return
+ packages = bb.data.getVar('PACKAGES', d, 1)
for pkg in packages.split():
localdata = bb.data.createCopy(d)
pkgdest = bb.data.getVar('PKGDEST', d, 1)
@@ -273,8 +270,13 @@ python () {
}
python do_package_write_deb () {
- bb.build.exec_func("read_subpackage_metadata", d)
- bb.build.exec_func("do_package_deb", d)
+ packages = bb.data.getVar('PACKAGES', d, True)
+ if not packages:
+ bb.debug(1, "No PACKAGES defined, nothing to package")
+ return
+
+ bb.build.exec_func("read_subpackage_metadata", d)
+ bb.build.exec_func("do_package_deb", d)
}
do_package_write_deb[dirs] = "${D}"
addtask package_write_deb before do_package_write after do_package