* [PATCH v2] rootfs: lock undefined in corner cases, bugfix
@ 2023-01-06 18:02 roberto.foglietta
0 siblings, 0 replies; only message in thread
From: roberto.foglietta @ 2023-01-06 18:02 UTC (permalink / raw)
To: isar-users; +Cc: roberto.foglietta
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
rootfs: lock undefined in corner cases, bugfix
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
meta/classes/rootfs.bbclass | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass
index 786682d..b4785f2 100644
--- a/meta/classes/rootfs.bbclass
+++ b/meta/classes/rootfs.bbclass
@@ -200,11 +200,14 @@ python do_rootfs_install() {
if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "acquire-before":
lock = bb.utils.lockfile(d.getVar("REPO_ISAR_DIR") + "/isar.lock",
shared=True)
+ else:
+ lock = ""
bb.build.exec_func(cmd, d)
if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "release-after":
- bb.utils.unlockfile(lock)
+ if (lock != ""):
+ bb.utils.unlockfile(lock)
progress_reporter.finish()
}
addtask rootfs_install before do_rootfs_postprocess after do_unpack
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-06 18:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06 18:02 [PATCH v2] rootfs: lock undefined in corner cases, bugfix roberto.foglietta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox