mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fix IndexError: list index out of range
This commit is contained in:
parent
b4a7c5b5c8
commit
7d39184bdf
1 changed files with 4 additions and 3 deletions
|
@ -557,7 +557,8 @@ class ArgParse(object):
|
|||
extra.append(additional)
|
||||
self.args.remove(additional)
|
||||
packages = self.args[1:]
|
||||
if self.args[1] in flags:
|
||||
for fl in flags:
|
||||
if fl in self.args:
|
||||
flag = self.args[1]
|
||||
packages = self.args[2:]
|
||||
PackageManager(packages).remove(flag, extra)
|
||||
|
|
Loading…
Reference in a new issue