mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
added upgrade in sbo
This commit is contained in:
parent
fc07c28fec
commit
f6165ae7a3
1 changed files with 9 additions and 4 deletions
|
@ -117,7 +117,7 @@ def main():
|
||||||
prog_version()
|
prog_version()
|
||||||
if args.a:
|
if args.a:
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
build_package(args.a[0], args.a[1], args.a[2:], path)
|
build_package(args.a[0], args.a[1:], path)
|
||||||
if args.l:
|
if args.l:
|
||||||
pkg_list(args.l)
|
pkg_list(args.l)
|
||||||
if args.t:
|
if args.t:
|
||||||
|
@ -130,12 +130,17 @@ def main():
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
if len(args.c) == 2:
|
if len(args.c) == 2:
|
||||||
if "sbo" in args.c:
|
if "sbo" in args.c:
|
||||||
sbo_check("".join(args.c[1]))
|
if args.c[1] == "upgrade":
|
||||||
|
sbo_check()
|
||||||
|
else:
|
||||||
|
choices = ["upgrade"]
|
||||||
|
ext_err_args()
|
||||||
|
err1_args("".join(args.c[1]), choices)
|
||||||
elif "slack" in args.c:
|
elif "slack" in args.c:
|
||||||
if args.c[1] == "upgrade-all":
|
if args.c[1] == "upgrade":
|
||||||
patches()
|
patches()
|
||||||
else:
|
else:
|
||||||
choices = ["upgrade-all"]
|
choices = ["upgrade"]
|
||||||
ext_err_args()
|
ext_err_args()
|
||||||
err1_args("".join(args.c[1]), choices)
|
err1_args("".join(args.c[1]), choices)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue