mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
fix check repo before info
This commit is contained in:
parent
4bdb0ee046
commit
77e9b8f4ab
1 changed files with 4 additions and 4 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Reference in a new issue