Felix Moessbauer
unread,Jul 22, 2024, 8:04:06 AM (6 days ago) Jul 22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to isar-...@googlegroups.com, adriaan...@siemens.com, Uladzimir Bely, Felix Moessbauer
Before operating on the varvals values, we need to check if varvals !=
None.
Signed-off-by: Felix Moessbauer <
felix.mo...@siemens.com>
---
This fixes a regression found while applying the "fix expansion of
variables in SRC_URI of dpkg-prebuilt" patch.
Best regards,
Felix
scripts/isar-sstate | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/isar-sstate b/scripts/isar-sstate
index 4ea38bc8..64511c44 100755
--- a/scripts/isar-sstate
+++ b/scripts/isar-sstate
@@ -869,9 +869,9 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, pedantic, li
name in ADDITIONAL_IGNORED_VARNAMES:
continue
# remove leading whitespaces possibly added by appending
- val = val.lstrip()
- if not val:
+ if not val or not val.lstrip():
continue
+ val = val.lstrip()
if name == 'SRC_URI':
src_uri = val.split()
--
2.39.2