public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2] isar-bootstrap: Remove bogus "resolve=False" from getVar()
@ 2019-08-19 12:32 Jan Kiszka
  2019-08-22 11:12 ` Baurzhan Ismagulov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2019-08-19 12:32 UTC (permalink / raw)
  To: isar-users, Baurzhan Ismagulov

From: Jan Kiszka <jan.kiszka@siemens.com>

We need the resolved content of the variables here. Not resolving means
that variables with late resolutions will break this anonymous python
block.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Changes in v2:
 - added one more cosmetic case

 meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
index 45b1608..1eb2ac6 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
@@ -35,16 +35,16 @@ DISTRO_APT_PREMIRRORS ?= "${@ "http://ftp\.(\S+\.)?debian.org/\S* file:///${REPO
 inherit base-apt-helper
 
 python () {
-    distro_bootstrap_keys = (d.getVar("DISTRO_BOOTSTRAP_KEYS", False) or "").split()
+    distro_bootstrap_keys = (d.getVar("DISTRO_BOOTSTRAP_KEYS") or "").split()
 
-    third_party_apt_keys = (d.getVar("THIRD_PARTY_APT_KEYS", False) or "").split() 
+    third_party_apt_keys = (d.getVar("THIRD_PARTY_APT_KEYS") or "").split()
 
     # The cached repo key can be both for bootstrapping and apt package
     # installation afterwards. However, debootstrap will include the key into
     # the rootfs automatically thus the right place is distro_bootstrap_keys.
 
     if bb.utils.to_boolean(d.getVar('ISAR_USE_CACHED_BASE_REPO')):
-        own_pub_key = d.getVar("BASE_REPO_KEY", False)
+        own_pub_key = d.getVar("BASE_REPO_KEY")
         if own_pub_key:
             distro_bootstrap_keys += own_pub_key.split()
 
@@ -169,7 +169,7 @@ def get_distro_needs_https_support(d, is_host=False):
         return ""
 
 def get_distro_needs_gpg_support(d):
-    apt_keys = d.getVar("THIRD_PARTY_APT_KEYS", False)
+    apt_keys = d.getVar("THIRD_PARTY_APT_KEYS")
     if apt_keys and apt_keys != "":
         return "gnupg"
     return ""
-- 

2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

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

* Re: [PATCH v2] isar-bootstrap: Remove bogus "resolve=False" from getVar()
  2019-08-19 12:32 [PATCH v2] isar-bootstrap: Remove bogus "resolve=False" from getVar() Jan Kiszka
@ 2019-08-22 11:12 ` Baurzhan Ismagulov
  0 siblings, 0 replies; 2+ messages in thread
From: Baurzhan Ismagulov @ 2019-08-22 11:12 UTC (permalink / raw)
  To: isar-users

On Mon, Aug 19, 2019 at 02:32:22PM +0200, Jan Kiszka wrote:
> We need the resolved content of the variables here. Not resolving means
> that variables with late resolutions will break this anonymous python
> block.

Applied to next, thanks.

With kind regards,
Baurzhan.

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

end of thread, other threads:[~2019-08-22 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 12:32 [PATCH v2] isar-bootstrap: Remove bogus "resolve=False" from getVar() Jan Kiszka
2019-08-22 11:12 ` Baurzhan Ismagulov

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