mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Fix upgrade package lists
This commit is contained in:
parent
3552d35419
commit
0940cbd14f
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ class ArgParse(object):
|
|||
elif (len(self.args) == 2 and self.args[0] == "upgrade" and
|
||||
self.args[1].startswith("--only=")):
|
||||
repos = self.args[1].split("=")[-1].split(",")
|
||||
for rp in repos:
|
||||
if rp not in self.meta.repositories:
|
||||
repos.remove(rp)
|
||||
Initialization(False).upgrade(repos)
|
||||
else:
|
||||
usage("")
|
||||
|
|
Loading…
Reference in a new issue