diff options
-rwxr-xr-x | scripts/combo-layer | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index cbff61803b..83cfc8e16a 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -571,12 +571,12 @@ def action_update(conf, args): | |||
571 | apply the generated patches | 571 | apply the generated patches |
572 | """ | 572 | """ |
573 | components = [arg.split(':')[0] for arg in args[1:]] | 573 | components = [arg.split(':')[0] for arg in args[1:]] |
574 | revisions = [] | 574 | revisions = {} |
575 | for arg in args[1:]: | 575 | for arg in args[1:]: |
576 | revision= arg.split(':', 1)[1] if ':' in arg else None | 576 | if ':' in arg: |
577 | revisions.append(revision) | 577 | a = arg.split(':', 1) |
578 | # Map commitishes to repos | 578 | revisions[a[0]] = a[1] |
579 | repos = OrderedDict(zip(get_repos(conf, components), revisions)) | 579 | repos = get_repos(conf, components) |
580 | 580 | ||
581 | # make sure combo repo is clean | 581 | # make sure combo repo is clean |
582 | check_repo_clean(os.getcwd()) | 582 | check_repo_clean(os.getcwd()) |
@@ -592,7 +592,8 @@ def action_update(conf, args): | |||
592 | else: | 592 | else: |
593 | action_pull(conf, ['arg0'] + components) | 593 | action_pull(conf, ['arg0'] + components) |
594 | 594 | ||
595 | for name, revision in repos.iteritems(): | 595 | for name in repos: |
596 | revision = revisions.get(name, None) | ||
596 | repo = conf.repos[name] | 597 | repo = conf.repos[name] |
597 | ldir = repo['local_repo_dir'] | 598 | ldir = repo['local_repo_dir'] |
598 | dest_dir = repo['dest_dir'] | 599 | dest_dir = repo['dest_dir'] |