mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fixed for repos dict
This commit is contained in:
parent
a712392436
commit
5b90b8834a
1 changed files with 5 additions and 2 deletions
|
@ -29,6 +29,11 @@ class Upgrade(Configs):
|
||||||
self.flag_bin_repository: list = ['-B', '--bin-repo=']
|
self.flag_bin_repository: list = ['-B', '--bin-repo=']
|
||||||
self.repo_for_binaries: bool = self.utils.is_option(self.flag_bin_repository, self.flags)
|
self.repo_for_binaries: bool = self.utils.is_option(self.flag_bin_repository, self.flags)
|
||||||
|
|
||||||
|
if self.utils.is_option(self.flag_bin_repository, self.flags):
|
||||||
|
self.bin_repo_dict: dict = BinQueries(self.repo).repository_data()
|
||||||
|
else:
|
||||||
|
self.sbo_repo_dict: dict = SBoQueries('').repository_data()
|
||||||
|
|
||||||
logging.basicConfig(filename=str(LoggingConfig.log_file),
|
logging.basicConfig(filename=str(LoggingConfig.log_file),
|
||||||
filemode='w',
|
filemode='w',
|
||||||
encoding='utf-8',
|
encoding='utf-8',
|
||||||
|
@ -37,10 +42,8 @@ class Upgrade(Configs):
|
||||||
def packages(self) -> Generator[str, None, None]:
|
def packages(self) -> Generator[str, None, None]:
|
||||||
""" Returns the upgradable packages. """
|
""" Returns the upgradable packages. """
|
||||||
if self.utils.is_option(self.flag_bin_repository, self.flags):
|
if self.utils.is_option(self.flag_bin_repository, self.flags):
|
||||||
self.bin_repo_dict: dict = BinQueries(self.repo).repository_data()
|
|
||||||
repo_packages: list = list(self.bin_repo_dict.keys())
|
repo_packages: list = list(self.bin_repo_dict.keys())
|
||||||
else:
|
else:
|
||||||
self.sbo_repo_dict: dict = SBoQueries('').repository_data()
|
|
||||||
repo_packages: list = list(self.sbo_repo_dict.keys())
|
repo_packages: list = list(self.sbo_repo_dict.keys())
|
||||||
|
|
||||||
# Returns the matched packages between two lists.
|
# Returns the matched packages between two lists.
|
||||||
|
|
Loading…
Add table
Reference in a new issue