mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-06 17:24:23 +01:00
Fixed check bin repos
This commit is contained in:
parent
01d07a68f5
commit
c1d877bab7
1 changed files with 6 additions and 6 deletions
|
@ -283,13 +283,13 @@ class Argparse(Configs):
|
||||||
|
|
||||||
def check_for_bin_repositories(self) -> None:
|
def check_for_bin_repositories(self) -> None:
|
||||||
""" Checks combination for binaries use repositories only and if repository exists. """
|
""" Checks combination for binaries use repositories only and if repository exists. """
|
||||||
if (self.utils.is_option(self.flag_binaries, self.flags)
|
if self.utils.is_option(self.flag_binaries, self.flags):
|
||||||
and not self.utils.is_option(self.flag_binaries, self.flags)):
|
|
||||||
self.usage.help_minimal(f"{self.prog_name}: invalid options '{', '.join(self.flags)}'")
|
|
||||||
|
|
||||||
if self.binary_repo not in self.repos.binaries_repositories_dict.keys() \
|
if self.binary_repo == '*' and not self.utils.is_option(['-s', 'search', '-u', 'update'], self.args):
|
||||||
and self.binary_repo == '*' and not self.utils.is_option(['-s', 'search', '-u', 'update'], self.args):
|
self.usage.help_minimal(f"{self.prog_name}: invalid binary repository '{self.binary_repo}'")
|
||||||
self.usage.help_minimal(f"{self.prog_name}: invalid binary repository '{self.binary_repo}'")
|
|
||||||
|
elif self.binary_repo not in self.repos.binaries_repositories_dict.keys() and self.binary_repo != '*':
|
||||||
|
self.usage.help_minimal(f"{self.prog_name}: invalid binary repository '{self.binary_repo}'")
|
||||||
|
|
||||||
def invalid_options(self) -> None:
|
def invalid_options(self) -> None:
|
||||||
""" Checks for invalid options. """
|
""" Checks for invalid options. """
|
||||||
|
|
Loading…
Reference in a new issue