From: "'Ulrich Teichert' via isar-users" <isar-users@googlegroups.com>
To: Isar <isar-users@googlegroups.com>
Cc: "krypton@ulrich-teichert.org" <krypton@ulrich-teichert.org>
Subject: [PATCH 1/1] Bugfix: add a check for "None" to raise a WicError
Date: Wed, 15 Jul 2026 06:41:35 +0000 [thread overview]
Message-ID: <DB9PR08MB744889FBE7B009B67B506A47C3F82@DB9PR08MB7448.eurprd08.prod.outlook.com> (raw)
Add a check for "None" to raise a WicError because
get_bitbake_var may return "None" if the variable is not available, which
would result in an exception inside os.path.isdir and not to the WicError
exception as intended.
Signed-off-by: Ulrich Teichert <ulrich.teichert@ebs-group.io>
---
scripts/lib/wic/plugins/source/rootfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index e29f3a4c..977ac0d3 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -54,7 +54,7 @@ class RootfsPlugin(SourcePlugin):
return os.path.realpath(rootfs_dir)
image_rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", rootfs_dir)
- if not os.path.isdir(image_rootfs_dir):
+ if image_rootfs_dir == None or not os.path.isdir(image_rootfs_dir):
raise WicError("No valid artifact IMAGE_ROOTFS from image "
"named %s has been found at %s, exiting." %
(rootfs_dir, image_rootfs_dir))
--
2.47.3
Mit
besten Grüßen / Best regards
Dipl.-Inform.
Ulrich
Teichert
Senior
Software Engineer
T→ +49 431 375938-0
ebs-group.io
_____________________________________
e.bs kumkeo
GmbH
Am
Kiel-Kanal 1
24106
Kiel, Deutschland
Geschäftsführer
→ Michael Leitner, Günter Hagspiel
Registergericht →
Amtsgericht Hamburg
Registernummer → HRB 187712
USt-Idnr.
→ DE449906070
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/DB9PR08MB744889FBE7B009B67B506A47C3F82%40DB9PR08MB7448.eurprd08.prod.outlook.com.
next reply other threads:[~2026-07-15 6:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 6:41 'Ulrich Teichert' via isar-users [this message]
2026-07-15 8:11 ` 'MOESSBAUER, Felix' via isar-users
2026-07-15 9:04 ` 'Ulrich Teichert' via isar-users
2026-07-15 9:26 ` 'MOESSBAUER, Felix' via isar-users
2026-07-15 9:55 ` Anton Mikanovich
2026-07-15 16:15 ` 'MOESSBAUER, Felix' via isar-users
2026-07-15 16:30 ` 'Jan Kiszka' via isar-users
2026-07-16 6:21 ` Anton Mikanovich
2026-07-15 11:33 ` 'Ulrich Teichert' via isar-users
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB9PR08MB744889FBE7B009B67B506A47C3F82@DB9PR08MB7448.eurprd08.prod.outlook.com \
--to=isar-users@googlegroups.com \
--cc=krypton@ulrich-teichert.org \
--cc=ulrich.teichert@ebs-group.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox