[bitbake-devel] [PATCH 21/23] toaster: bldcontrol Ignore toasterconf files in own directories
Alex DAMIAN
alexandru.damian at intel.com
Thu Jun 25 10:33:58 UTC 2015
From: Michael Wood <michael.g.wood at intel.com>
If toaster has previously cloned poky or a layer with a toasterconf
file we don't want this to be picked up as a choice as these clones are
"internal" to toaster and may have undesired effects on toaster's setup.
[YOCTO #7741]
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
lib/toaster/bldcontrol/management/commands/checksettings.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/toaster/bldcontrol/management/commands/checksettings.py b/lib/toaster/bldcontrol/management/commands/checksettings.py
index 3c52446..3002e4c 100644
--- a/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -166,6 +166,8 @@ class Command(NoArgsCommand):
conffilepath, error = subprocess.Popen('bash -c ". '+os.path.join(dirname, ".templateconf")+'; echo \"\$TEMPLATECONF\""', shell=True, stdout=subprocess.PIPE).communicate()
conffilepath = os.path.join(conffilepath.strip(), "toasterconf.json")
candidatefilepath = os.path.join(dirname, conffilepath)
+ if "toaster_cloned" in candidatefilepath:
+ continue
if os.path.exists(candidatefilepath):
config_files.append(candidatefilepath)
--
1.9.1
More information about the bitbake-devel
mailing list