Merge pull request #154 from tswsl1989/master

Fix bootstrapped apps filter when no path specified
master
Marek Ventur 2018-09-20 22:23:06 +01:00 committed by GitHub
commit d4343e67a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -124,8 +124,11 @@ def main():
paths = args.paths if len(args.paths) else None
if args.bootstrapped_apps:
for k,val in list(resources.items()):
requested = paths and k in paths
bootstrapped = val.get("bootstrapped", False)
if val.get("type", None) == "app":
if not k in paths and not val.get("bootstrapped", False):
if not (bootstrapped or (paths and requested)):
# App is not in the bootstrap list, and isn't explicitly requested
if args.verbose:
print("Removing app '{0}' from sync list".format(k))
del resources[k]