mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Remove repositories if not exist
This commit is contained in:
parent
07ed83e605
commit
55bf9b05d6
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ class ArgParse(object):
|
||||||
elif (len(self.args) == 2 and self.args[0] == "update" and
|
elif (len(self.args) == 2 and self.args[0] == "update" 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)
|
||||||
Update().repository(repos)
|
Update().repository(repos)
|
||||||
else:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
Loading…
Reference in a new issue