mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-11 20:48:11 +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":
|
if len(args) == 1 and args[0] == "repolist":
|
||||||
RepoList().repos()
|
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:
|
if len(args) == 0:
|
||||||
usage()
|
usage()
|
||||||
elif (len(args) == 1 and args[0] == "-h" or
|
elif (len(args) == 1 and args[0] == "-h" or
|
||||||
|
@ -152,6 +148,10 @@ def main():
|
||||||
if len(args) == 1 and args[0] == "re-create":
|
if len(args) == 1 and args[0] == "re-create":
|
||||||
Initialization().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":
|
if len(args) == 3 and args[0] == "-a":
|
||||||
BuildPackage(args[1], args[2:], path).build()
|
BuildPackage(args[1], args[2:], path).build()
|
||||||
elif len(args) == 2 and args[0] == "-l":
|
elif len(args) == 2 and args[0] == "-l":
|
||||||
|
|
Loading…
Add table
Reference in a new issue