Skip to content
Snippets Groups Projects
Commit ad06b952 authored by Seblu's avatar Seblu
Browse files

repository on command line are added to the of repostiory in config file not supersede

parent 4575bdb3
No related branches found
No related tags found
No related merge requests found
......@@ -37,14 +37,14 @@ def load_repositories(args):
# from command line
repoman.register(RepositoryConfig(istools.smd5sum(args.repo_path)[:8],
path=args.repo_path))
else:
# from config
for repoconf in RepoConfigFile(args.repo_config).repos:
if args.repo_filter is None:
# from config
for repoconf in RepoConfigFile(args.repo_config).repos:
if args.repo_filter is None:
repoman.register(repoconf)
else:
if len(fnmatch.filter([repoconf.name], args.repo_filter)) > 0:
repoman.register(repoconf)
else:
if len(fnmatch.filter([repoconf.name], args.repo_filter)) > 0:
repoman.register(repoconf)
return repoman
def select_image(name, repoman):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment