If one or more components are specified for update, only check if their
repository/repositories are dirty rather than checking all of the
configured repositories.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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:]:
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']