This commit is contained in:
Dimitris Zlatanidis 2015-06-22 22:16:21 +03:00
parent cc90817ee5
commit 4d2a73f101

View file

@ -227,15 +227,16 @@ class ArgParse(object):
"""Manage flags for package upgrade option """Manage flags for package upgrade option
""" """
flag = skip, i = "", 0 flag = skip, i = "", 0
if flags[2] in self.args: if flags[0] in self.args:
flag = flags[2] if flags[2] in self.args:
index = self.args.index(flags[2]) flag = flags[2]
del self.args[index] index = self.args.index(flags[2])
for arg in self.args: del self.args[index]
if arg.startswith("--skip"): for arg in self.args:
skip = skiped(self.args[3].split("=")[1]) if arg.startswith("--skip"):
self.args.pop(i) skip = skiped(self.args[i].split("=")[1])
i += 1 self.args.pop(i)
i += 1
return flags, flag, skip return flags, flag, skip
def pkg_install(self): def pkg_install(self):