summaryrefslogtreecommitdiffstats
path: root/scripts/combo-layer
diff options
context:
space:
mode:
authorAlexander D. Kanevskiy <kad@kad.name>2015-10-16 18:49:21 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:39:31 +0000
commitaa1844e847a5f5f5ba36bfbf7bfc986de0913c57 (patch)
tree4fdac4365e2e5b7d5c8b3b55eca4c92005bcb3fe /scripts/combo-layer
parentdcc446fee088987ffc59c0fb3ceac4880b0c0529 (diff)
downloadpoky-aa1844e847a5f5f5ba36bfbf7bfc986de0913c57.tar.gz
combo-layer: introduce ability to exclude component from mass update
There is no ability at the moment for situations where users would like to keep section in combo-layer.conf but don't update it, unless explicitly specified. Now, by adding "update = no" to desired section would exclude that repository from "combo-layer update" command. It is still possible to explicitly update it by "combo-layer update $section". By default, all repositories are assumed as "update = yes" (From OE-Core rev: 74ecf1a0e5c8230e55cb1a309f711d98fa63ce79) Signed-off-by: Alexander D. Kanevskiy <kad@kad.name> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-xscripts/combo-layer4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 7435a176be..92c5cbb813 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -73,7 +73,7 @@ class Configuration(object):
73 else: 73 else:
74 # Apply special type transformations for some properties. 74 # Apply special type transformations for some properties.
75 # Type matches the RawConfigParser.get*() methods. 75 # Type matches the RawConfigParser.get*() methods.
76 types = {'signoff': 'boolean'} 76 types = {'signoff': 'boolean', 'update': 'boolean'}
77 if name in types: 77 if name in types:
78 value = getattr(parser, 'get' + types[name])(section, name) 78 value = getattr(parser, 'get' + types[name])(section, name)
79 self.repos[repo][name] = value 79 self.repos[repo][name] = value
@@ -567,7 +567,7 @@ def get_repos(conf, repo_names):
567 sys.exit(1) 567 sys.exit(1)
568 568
569 if not repos: 569 if not repos:
570 repos = conf.repos 570 repos = [ repo for repo in conf.repos if conf.repos[repo].get("update", True) ]
571 571
572 return repos 572 return repos
573 573