Bugfix update custom repositories

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-08 00:01:11 +03:00
parent 95ff953f53
commit c18eccfa94
3 changed files with 7 additions and 3 deletions

View file

@ -1,8 +1,11 @@
3.9.7 - 02/04/2022
3.9.7 - 08/05/2022
Fixed:
- Stderr error output
Updated:
- Improve dependencies resolve speed
Bugfix:
- Update custom repositories
- Passing repositories manual
3.9.6 - 02/04/2022
Updated:

View file

@ -762,6 +762,7 @@ class Update:
print("\nCheck and update repositories:\n")
default = self.meta.default_repositories
enabled = self.meta.repositories
custom = Repo().custom_repository()
# Replace the enabled repositories from user defined
if repos:
@ -776,7 +777,7 @@ class Update:
if repo in default:
getattr(Initialization(False), repo)()
print(self.done, end="")
elif repo in enabled:
elif repo in custom:
Initialization(False).custom(repo)
print(self.done, end="")
else:

View file

@ -130,7 +130,7 @@ class ArgParse(BlackList):
repos = self.args[1].split("=")[-1].split(",")
for rp in repos:
if rp not in self.meta.repositories:
repos.remove(rp)
usage(rp, 1)
update.run(repos)
else:
usage("", 1)