[PATCH 1/1] fix(isar-sstate): continue on missing varvals value

1 view
Skip to first unread message

Felix Moessbauer

unread,
Jul 22, 2024, 8:04:06 AM (6 days ago) Jul 22
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

Reply all
Reply to author
Forward
0 new messages