Fixed for enabled repos

This commit is contained in:
Dimitris Zlatanidis 2023-04-24 12:06:21 +03:00
parent 981196d8ff
commit 1f0c934e96
2 changed files with 1 additions and 2 deletions

View file

@ -306,7 +306,7 @@ class Argparse(Configs):
'-c', 'check-updates',
]
if self.binary_repo in self.repos.bin_repos_names and self.binary_repo not in self.repos.bin_enabled_repos:
if self.binary_repo in self.repos.bin_repos_names and not self.repos.repositories[self.binary_repo][0]:
self.usage.help_minimal(f"{self.prog_name}: repository '{self.binary_repo}' is disabled")
elif self.binary_repo == '*' and not self.utils.is_option(except_options, self.args):

View file

@ -21,7 +21,6 @@ class Repositories:
repos_config = {}
repositories = {}
bin_repos_name = []
bin_enabled_repos = []
sbo_repo: bool = True
sbo_repo_name: str = 'sbo'