scripts/combo-layer: limit component repo dirty check
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. (From OE-Core rev: b03e710c88ad0c66cf731647f26e8441d0074cae) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
6a44fcb236
commit
fd3f7d5d6a
|
@ -150,15 +150,6 @@ def action_update(conf, args):
|
||||||
generate the patch list
|
generate the patch list
|
||||||
apply the generated patches
|
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 = []
|
repos = []
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
for arg in args[1:]:
|
for arg in args[1:]:
|
||||||
|
@ -174,6 +165,15 @@ def action_update(conf, args):
|
||||||
if not repos:
|
if not repos:
|
||||||
repos = conf.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:
|
for name in repos:
|
||||||
repo = conf.repos[name]
|
repo = conf.repos[name]
|
||||||
ldir = repo['local_repo_dir']
|
ldir = repo['local_repo_dir']
|
||||||
|
|
Loading…
Reference in New Issue