[reagent] fix repo initialization code

This commit is contained in:
Fabio Erculiani
2011-08-03 09:51:21 +02:00
parent 716de574de
commit 58a298bd44
2 changed files with 2 additions and 3 deletions

View File

@@ -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')),

View File

@@ -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(" * ") + \