summaryrefslogtreecommitdiff
path: root/meta/classes/packaged-staging.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-02 17:38:44 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:22 +0000
commita1d93ee3260d8161c7ae14674e01b516b952dea9 (patch)
tree8facf7f173a44d4790563f6107d2cc5be1f02582 /meta/classes/packaged-staging.bbclass
parent3c83baeb26be3c0c463eef1790213ce7f1b72c5f (diff)
downloadopenembedded-core-a1d93ee3260d8161c7ae14674e01b516b952dea9.tar.gz
openembedded-core-a1d93ee3260d8161c7ae14674e01b516b952dea9.tar.bz2
openembedded-core-a1d93ee3260d8161c7ae14674e01b516b952dea9.tar.xz
openembedded-core-a1d93ee3260d8161c7ae14674e01b516b952dea9.zip
packaged-staging.bbclass: Use a variable for the location of the staging lock file
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/packaged-staging.bbclass')
-rw-r--r--meta/classes/packaged-staging.bbclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass
index 7ad8b4b72..6df13876c 100644
--- a/meta/classes/packaged-staging.bbclass
+++ b/meta/classes/packaged-staging.bbclass
@@ -135,7 +135,7 @@ def pstage_cleanpackage(pkgname, d):
list_cmd = bb.data.getVar("PSTAGE_LIST_CMD", d, True)
bb.note("Checking if staging package installed")
- lf = bb.utils.lockfile(bb.data.expand("${STAGING_DIR}/staging.lock", d))
+ lf = bb.utils.lockfile(bb.data.expand("${SYSROOT_LOCK}", d))
ret = os.system("PATH=\"%s\" %s | grep %s" % (path, list_cmd, pkgname))
if ret == 0:
bb.note("Yes. Uninstalling package from staging...")
@@ -254,7 +254,7 @@ python packagestage_scenefunc () {
if stageok:
bb.note("Staging package found, using it for %s." % file)
installcmd = bb.data.getVar("PSTAGE_INSTALL_CMD", d, 1)
- lf = bb.utils.lockfile(bb.data.expand("${STAGING_DIR}/staging.lock", d))
+ lf = bb.utils.lockfile(bb.data.expand("${SYSROOT_LOCK}", d))
ret = os.system("PATH=\"%s\" %s %s" % (path, installcmd, stagepkg))
bb.utils.unlockfile(lf)
if ret != 0:
@@ -326,12 +326,11 @@ autotools_staging_pstage () {
cp -fpPR ${WORKDIR}/temp-staging-pstage/${STAGING_DIR}/* ${STAGING_DIR}/ || /bin/true
}
-#do_populate_staging[lockfiles] = "${STAGING_DIR}/staging.lock"
do_populate_staging[dirs] =+ "${DEPLOY_DIR_PSTAGE}"
python do_populate_staging_prepend() {
needstamp = bb.data.getVar("PSTAGING_NEEDSTAMP", d, 1)
pstageactive = bb.data.getVar("PSTAGING_ACTIVE", d, True)
- lock = bb.data.expand("${STAGING_DIR}/staging.lock", d)
+ lock = bb.data.expand("${SYSROOT_LOCK}", d)
if needstamp == "1":
stamplock = bb.utils.lockfile(lock)
bb.build.exec_func("populate_staging_preamble", d)
@@ -481,7 +480,7 @@ python do_package_stage () {
pstage_set_pkgmanager(d)
bb.build.exec_func("staging_helper", d)
bb.build.exec_func("staging_packager", d)
- lf = bb.utils.lockfile(bb.data.expand("${STAGING_DIR}/staging.lock", d))
+ lf = bb.utils.lockfile(bb.data.expand("${SYSROOT_LOCK}", d))
bb.build.exec_func("staging_package_installer", d)
bb.utils.unlockfile(lf)
}