summaryrefslogtreecommitdiff
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-24 23:05:05 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-24 23:05:05 +0000
commit1d01a5ef0098de42aac7334a6794d83f91d1f637 (patch)
treed411280da8959f821f24d01e77a8891eabf7f63a /meta/classes/package_ipk.bbclass
parent62a3ee38ed1076de75d40f56c757098b6c219810 (diff)
downloadopenembedded-core-1d01a5ef0098de42aac7334a6794d83f91d1f637.tar.gz
openembedded-core-1d01a5ef0098de42aac7334a6794d83f91d1f637.tar.bz2
openembedded-core-1d01a5ef0098de42aac7334a6794d83f91d1f637.zip
package_{ipk|deb}.bbclass: Remove hardcoded install path reference
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3224 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index e69745665f..6dceb284bc 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -115,7 +115,7 @@ package_generate_ipkg_conf () {
}
python do_package_ipk () {
- import sys, re, fcntl, copy
+ import sys, re, copy
workdir = bb.data.getVar('WORKDIR', d, 1)
if not workdir:
@@ -154,7 +154,8 @@ python do_package_ipk () {
for pkg in packages.split():
localdata = bb.data.createCopy(d)
- root = "%s/install/%s" % (workdir, pkg)
+ pkgdest = bb.data.getVar('PKGDEST', d, 1)
+ root = "%s/%s" % (pkgdest, pkg)
lf = bb.utils.lockfile(root + ".lock")