Don't remove paths explicitly specified on command line
parent
d72cdc9272
commit
dbb8515fb8
|
@ -121,16 +121,17 @@ def main():
|
||||||
pyboard_util.hard_reset(args)
|
pyboard_util.hard_reset(args)
|
||||||
|
|
||||||
if command == "sync":
|
if command == "sync":
|
||||||
|
paths = args.paths if len(args.paths) else None
|
||||||
if args.bootstrapped_apps:
|
if args.bootstrapped_apps:
|
||||||
for k,val in list(resources.items()):
|
for k,val in list(resources.items()):
|
||||||
if val.get("type", None) == "app" and not val.get("bootstrapped", False):
|
if val.get("type", None) == "app":
|
||||||
if args.verbose:
|
if not k in paths and not val.get("bootstrapped", False):
|
||||||
print("Removing app '{0}' from sync list".format(k))
|
if args.verbose:
|
||||||
del resources[k]
|
print("Removing app '{0}' from sync list".format(k))
|
||||||
|
del resources[k]
|
||||||
|
|
||||||
if args.clean:
|
if args.clean:
|
||||||
sync.clean(args)
|
sync.clean(args)
|
||||||
paths = args.paths if len(args.paths) else None
|
|
||||||
synced_resources = sync.sync(args, paths, resources, args.verbose, args.skip_wifi)
|
synced_resources = sync.sync(args, paths, resources, args.verbose, args.skip_wifi)
|
||||||
|
|
||||||
if (command in ["reset", "sync"]) or run_tests:
|
if (command in ["reset", "sync"]) or run_tests:
|
||||||
|
|
Loading…
Reference in New Issue