summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-12-01 18:58:52 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-12-01 18:58:52 +0000
commitfa6001effc161c8d8ff17d5d107b13d7cb3ee05c (patch)
tree41619e5123d20f441fdcf85349e5dabb12510f7f /classes
parentf4d1946202890cf7a8821600251d30c75a20e0db (diff)
package.bbclass: Remove uneeded PACKAGE variable sanity checks, use pkgdata packaged function from base.bbclass rather than our own (from poky)
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass11
1 files changed, 1 insertions, 10 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 3f7a5dc9df..1d661bcfe7 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -34,9 +34,6 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
return
packages = bb.data.getVar('PACKAGES', d, 1).split()
- if not packages:
- # nothing to do
- return
if postinst:
postinst = '#!/bin/sh\n' + postinst + '\n'
@@ -410,9 +407,6 @@ python populate_packages () {
bb.mkdirhier(dvar)
packages = bb.data.getVar('PACKAGES', d, 1)
- if not packages:
- bb.debug(1, "PACKAGES not defined, nothing to package")
- return
pn = bb.data.getVar('PN', d, 1)
if not pn:
@@ -905,10 +899,7 @@ python package_depchains() {
prefixes = (bb.data.getVar('DEPCHAIN_PRE', d, 1) or '').split()
def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d):
- def packaged(pkg, d):
- return os.access(bb.data.expand('${PKGDATA_DIR}/runtime/%s.packaged' % pkg, d), os.R_OK)
-
- #bb.note('rdepends for %s is %s' % (base, rdepends))
+ #bb.note('rdepends for %s is %s' % (base, rdepends))
rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")