* [PATCH] rootfs class lock undefined in corner cases fix
@ 2023-01-04 18:56 roberto.foglietta
2023-01-04 19:01 ` Roberto A. Foglietta
0 siblings, 1 reply; 3+ messages in thread
From: roberto.foglietta @ 2023-01-04 18:56 UTC (permalink / raw)
To: isar-users; +Cc: roberto.foglietta
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
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 b3faade..63735d4 100644
--- a/meta/classes/rootfs.bbclass
+++ b/meta/classes/rootfs.bbclass
@@ -198,11 +198,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] 3+ messages in thread
* Re: [PATCH] rootfs class lock undefined in corner cases fix
2023-01-04 18:56 [PATCH] rootfs class lock undefined in corner cases fix roberto.foglietta
@ 2023-01-04 19:01 ` Roberto A. Foglietta
2023-01-04 20:20 ` Henning Schild
0 siblings, 1 reply; 3+ messages in thread
From: Roberto A. Foglietta @ 2023-01-04 19:01 UTC (permalink / raw)
To: isar-users
On Wed, 4 Jan 2023 at 19:56, <roberto.foglietta@gmail.com> wrote:
>
> From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
>
Finally, I made my way with a reliable SMTP for git-send-email.
Best regards, R-
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] rootfs class lock undefined in corner cases fix
2023-01-04 19:01 ` Roberto A. Foglietta
@ 2023-01-04 20:20 ` Henning Schild
0 siblings, 0 replies; 3+ messages in thread
From: Henning Schild @ 2023-01-04 20:20 UTC (permalink / raw)
To: Roberto A. Foglietta; +Cc: isar-users
Am Wed, 4 Jan 2023 20:01:05 +0100
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:
> On Wed, 4 Jan 2023 at 19:56, <roberto.foglietta@gmail.com> wrote:
> >
> > From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
> >
>
> Finally, I made my way with a reliable SMTP for git-send-email.
Cool stuff, i almost which i could give you emojis and markdown as reply
Henning
> Best regards, R-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-04 20:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 18:56 [PATCH] rootfs class lock undefined in corner cases fix roberto.foglietta
2023-01-04 19:01 ` Roberto A. Foglietta
2023-01-04 20:20 ` Henning Schild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox