Fix upgrade package lists

This commit is contained in:
Dimitris Zlatanidis 2017-02-09 13:31:45 +02:00
parent 3552d35419
commit 0940cbd14f

View file

@ -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("")