public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] fix(isar-sstate): continue on missing varvals value
@ 2024-07-22 12:03 'Felix Moessbauer' via isar-users
  2024-07-30  8:04 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2024-07-22 12:03 UTC (permalink / raw)
  To: isar-users; +Cc: adriaan.schmidt, Uladzimir Bely, Felix Moessbauer

Before operating on the varvals values, we need to check if varvals !=
None.

Signed-off-by: Felix Moessbauer <felix.moessbauer@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

-- 
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 on the web visit https://groups.google.com/d/msgid/isar-users/20240722120351.656333-1-felix.moessbauer%40siemens.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-30  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-22 12:03 [PATCH 1/1] fix(isar-sstate): continue on missing varvals value 'Felix Moessbauer' via isar-users
2024-07-30  8:04 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox