summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/combo-layer18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 7457ba2c5..36123238b 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -150,15 +150,6 @@ def action_update(conf, args):
generate the patch list
apply the generated patches
"""
- # make sure all repos are clean
- for name in conf.repos:
- check_repo_clean(conf.repos[name]['local_repo_dir'])
- check_repo_clean(os.getcwd())
-
- import uuid
- patch_dir = "patch-%s" % uuid.uuid4()
- os.mkdir(patch_dir)
-
repos = []
if len(args) > 1:
for arg in args[1:]:
@@ -174,6 +165,15 @@ def action_update(conf, args):
if not repos:
repos = conf.repos
+ # make sure all repos are clean
+ for name in repos:
+ check_repo_clean(conf.repos[name]['local_repo_dir'])
+ check_repo_clean(os.getcwd())
+
+ import uuid
+ patch_dir = "patch-%s" % uuid.uuid4()
+ os.mkdir(patch_dir)
+
for name in repos:
repo = conf.repos[name]
ldir = repo['local_repo_dir']