diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-29 23:41:48 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:22 +0000 |
commit | 0eee29e45161195663ccf5a795aada97257f1832 (patch) | |
tree | 59c9f5cb2fdfcec589cf18b0b7bd703a0f61f350 /meta/classes | |
parent | 4f4a3da8432e31e6d5cec376155999fcc5f3e2bc (diff) | |
download | poky-0eee29e45161195663ccf5a795aada97257f1832.tar.gz |
package.bbclass: Remove hardcoded use of PKGDEST variable
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index ca23cc6472..7928fe9f6b 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -454,6 +454,7 @@ python emit_pkgdata() { | |||
454 | return | 454 | return |
455 | 455 | ||
456 | packages = bb.data.getVar('PACKAGES', d, True) | 456 | packages = bb.data.getVar('PACKAGES', d, True) |
457 | pkgdest = bb.data.getVar('PKGDEST', d, 1) | ||
457 | pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True) | 458 | pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True) |
458 | 459 | ||
459 | pstageactive = bb.data.getVar('PSTAGING_ACTIVE', d, True) | 460 | pstageactive = bb.data.getVar('PSTAGING_ACTIVE', d, True) |
@@ -497,7 +498,7 @@ python emit_pkgdata() { | |||
497 | allow_empty = bb.data.getVar('ALLOW_EMPTY_%s' % pkg, d, True) | 498 | allow_empty = bb.data.getVar('ALLOW_EMPTY_%s' % pkg, d, True) |
498 | if not allow_empty: | 499 | if not allow_empty: |
499 | allow_empty = bb.data.getVar('ALLOW_EMPTY', d, True) | 500 | allow_empty = bb.data.getVar('ALLOW_EMPTY', d, True) |
500 | root = "%s/install/%s" % (workdir, pkg) | 501 | root = "%s/%s" % (pkgdest, pkg) |
501 | os.chdir(root) | 502 | os.chdir(root) |
502 | g = glob('*') | 503 | g = glob('*') |
503 | if g or allow_empty == "1": | 504 | if g or allow_empty == "1": |