mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Fix args
This commit is contained in:
parent
cc90817ee5
commit
4d2a73f101
1 changed files with 10 additions and 9 deletions
|
@ -227,15 +227,16 @@ class ArgParse(object):
|
|||
"""Manage flags for package upgrade option
|
||||
"""
|
||||
flag = skip, i = "", 0
|
||||
if flags[2] in self.args:
|
||||
flag = flags[2]
|
||||
index = self.args.index(flags[2])
|
||||
del self.args[index]
|
||||
for arg in self.args:
|
||||
if arg.startswith("--skip"):
|
||||
skip = skiped(self.args[3].split("=")[1])
|
||||
self.args.pop(i)
|
||||
i += 1
|
||||
if flags[0] in self.args:
|
||||
if flags[2] in self.args:
|
||||
flag = flags[2]
|
||||
index = self.args.index(flags[2])
|
||||
del self.args[index]
|
||||
for arg in self.args:
|
||||
if arg.startswith("--skip"):
|
||||
skip = skiped(self.args[i].split("=")[1])
|
||||
self.args.pop(i)
|
||||
i += 1
|
||||
return flags, flag, skip
|
||||
|
||||
def pkg_install(self):
|
||||
|
|
Loading…
Reference in a new issue