[reagent] fix repo initialization code
This commit is contained in:
@@ -69,8 +69,7 @@ help_opts = [
|
||||
(2, '--quiet', 2, _('print results in a scriptable way')),
|
||||
None,
|
||||
(1, 'repo', 3, _('manage a repository')),
|
||||
(2, '--initialize', 3, _('(re)initialize the current repository database')),
|
||||
(3, '--repo=<repo>', 2, _('(re)create the database for the specified repository')),
|
||||
(2, 'init', 3, _('(re)initialize the current repository')),
|
||||
(2, 'bump', 4, _('manually force a revision bump for the current repository database')),
|
||||
(3, '--sync', 3, _('synchronize the database')),
|
||||
(2, 'flushback [branches]', 2, _('flush back old branches packages to current branch')),
|
||||
|
||||
@@ -719,7 +719,7 @@ def _repositories(entropy_server, options):
|
||||
elif cmd == "multiremove":
|
||||
return _multiremove_packages(entropy_server, myopts)
|
||||
|
||||
elif cmd == "--initialize":
|
||||
elif cmd == "init":
|
||||
rc = entropy_server.initialize_repository(default_repository_id)
|
||||
if rc == 0:
|
||||
print_info(darkgreen(" * ") + \
|
||||
|
||||
Reference in New Issue
Block a user