mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +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
|
elif (len(self.args) == 2 and self.args[0] == "upgrade" and
|
||||||
self.args[1].startswith("--only=")):
|
self.args[1].startswith("--only=")):
|
||||||
repos = self.args[1].split("=")[-1].split(",")
|
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)
|
Initialization(False).upgrade(repos)
|
||||||
else:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
Loading…
Add table
Reference in a new issue