diff options
author | Alexander D. Kanevskiy <kad@kad.name> | 2015-10-16 18:49:21 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-16 11:28:38 +0000 |
commit | 74ecf1a0e5c8230e55cb1a309f711d98fa63ce79 (patch) | |
tree | ea6b16b1106a036b5d6d7c3129c2278542c69b55 /scripts | |
parent | 04ed298520d38e0b078723b1b45368b7037cf6e0 (diff) | |
download | openembedded-core-74ecf1a0e5c8230e55cb1a309f711d98fa63ce79.tar.gz openembedded-core-74ecf1a0e5c8230e55cb1a309f711d98fa63ce79.tar.bz2 openembedded-core-74ecf1a0e5c8230e55cb1a309f711d98fa63ce79.zip |
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"
Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/combo-layer | 4 |
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): else: # Apply special type transformations for some properties. # Type matches the RawConfigParser.get*() methods. - types = {'signoff': 'boolean'} + types = {'signoff': 'boolean', 'update': 'boolean'} if name in types: value = getattr(parser, 'get' + types[name])(section, name) self.repos[repo][name] = value @@ -567,7 +567,7 @@ def get_repos(conf, repo_names): sys.exit(1) if not repos: - repos = conf.repos + repos = [ repo for repo in conf.repos if conf.repos[repo].get("update", True) ] return repos |