fix check repo before info

This commit is contained in:
Dimitris Zlatanidis 2014-12-22 11:10:12 +02:00
parent 4bdb0ee046
commit 77e9b8f4ab

View file

@ -132,10 +132,6 @@ def main():
if len(args) == 1 and args[0] == "repolist":
RepoList().repos()
if (len(args) == 2 and args[0] == "repoinfo" and
args[1] in RepoList().all_repos):
RepoInfo().view(args[1])
if len(args) == 0:
usage()
elif (len(args) == 1 and args[0] == "-h" or
@ -152,6 +148,10 @@ def main():
if len(args) == 1 and args[0] == "re-create":
Initialization().re_create()
if (len(args) == 2 and args[0] == "repoinfo" and
args[1] in RepoList().all_repos):
RepoInfo().view(args[1])
if len(args) == 3 and args[0] == "-a":
BuildPackage(args[1], args[2:], path).build()
elif len(args) == 2 and args[0] == "-l":