mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for repo dict
This commit is contained in:
parent
606031581e
commit
a712392436
3 changed files with 5 additions and 9 deletions
|
@ -16,9 +16,6 @@ class BinQueries:
|
||||||
|
|
||||||
self.black = Blacklist()
|
self.black = Blacklist()
|
||||||
|
|
||||||
# if self.name in self.black.packages():
|
|
||||||
# self.name: str = ''
|
|
||||||
|
|
||||||
def repository_data(self) -> dict:
|
def repository_data(self) -> dict:
|
||||||
""" Returns a dictionary with the repository data. """
|
""" Returns a dictionary with the repository data. """
|
||||||
repos_dict: dict = {}
|
repos_dict: dict = {}
|
||||||
|
|
|
@ -540,7 +540,7 @@ class Argparse(Configs):
|
||||||
install = Packages(packages, self.flags, self.binary_repo, mode=command)
|
install = Packages(packages, self.flags, self.binary_repo, mode=command)
|
||||||
install.execute()
|
install.execute()
|
||||||
else:
|
else:
|
||||||
install = Slackbuilds(packages, self.flags, mode=command)
|
install = Slackbuilds(self.sbo_repo_dict, packages, self.flags, mode=command)
|
||||||
install.execute()
|
install.execute()
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
self.usage.help_short(1)
|
self.usage.help_short(1)
|
||||||
|
@ -612,7 +612,7 @@ class Argparse(Configs):
|
||||||
self.check.exists_in_the_database(packages)
|
self.check.exists_in_the_database(packages)
|
||||||
self.check.is_package_unsupported(packages)
|
self.check.is_package_unsupported(packages)
|
||||||
|
|
||||||
build = Slackbuilds(packages, self.flags, mode=command)
|
build = Slackbuilds(self.sbo_repo_dict, packages, self.flags, mode=command)
|
||||||
build.execute()
|
build.execute()
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
self.usage.help_short(1)
|
self.usage.help_short(1)
|
||||||
|
@ -637,7 +637,7 @@ class Argparse(Configs):
|
||||||
self.check.exists_in_the_database(packages)
|
self.check.exists_in_the_database(packages)
|
||||||
self.check.is_package_unsupported(packages)
|
self.check.is_package_unsupported(packages)
|
||||||
|
|
||||||
install = Slackbuilds(packages, self.flags, mode=command)
|
install = Slackbuilds(self.sbo_repo_dict, packages, self.flags, mode=command)
|
||||||
install.execute()
|
install.execute()
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
self.usage.help_short(1)
|
self.usage.help_short(1)
|
||||||
|
|
|
@ -17,7 +17,6 @@ from slpkg.utilities import Utilities
|
||||||
from slpkg.dialog_box import DialogBox
|
from slpkg.dialog_box import DialogBox
|
||||||
from slpkg.downloader import Downloader
|
from slpkg.downloader import Downloader
|
||||||
from slpkg.views.views import ViewMessage
|
from slpkg.views.views import ViewMessage
|
||||||
from slpkg.sbos.queries import SBoQueries
|
|
||||||
from slpkg.progress_bar import ProgressBar
|
from slpkg.progress_bar import ProgressBar
|
||||||
from slpkg.repositories import Repositories
|
from slpkg.repositories import Repositories
|
||||||
from slpkg.sbos.dependencies import Requires
|
from slpkg.sbos.dependencies import Requires
|
||||||
|
@ -28,9 +27,10 @@ from slpkg.models.models import session as Session
|
||||||
class Slackbuilds(Configs):
|
class Slackbuilds(Configs):
|
||||||
""" Download build and install the SlackBuilds. """
|
""" Download build and install the SlackBuilds. """
|
||||||
|
|
||||||
def __init__(self, slackbuilds: list, flags: list, mode: str):
|
def __init__(self, sbo_repo_dict: dict, slackbuilds: list, flags: list, mode: str):
|
||||||
__slots__ = 'slackbuilds', 'flags', 'mode'
|
__slots__ = 'slackbuilds', 'flags', 'mode'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
|
self.sbo_repo_dict = sbo_repo_dict
|
||||||
self.slackbuilds: list = slackbuilds
|
self.slackbuilds: list = slackbuilds
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.mode: str = mode
|
self.mode: str = mode
|
||||||
|
@ -65,7 +65,6 @@ class Slackbuilds(Configs):
|
||||||
self.flag_parallel: list = ['-P', '--parallel']
|
self.flag_parallel: list = ['-P', '--parallel']
|
||||||
|
|
||||||
self.slackbuilds: list = self.utils.apply_package_pattern(self.flags, self.slackbuilds)
|
self.slackbuilds: list = self.utils.apply_package_pattern(self.flags, self.slackbuilds)
|
||||||
self.sbo_repo_dict: dict = SBoQueries('').repository_data()
|
|
||||||
|
|
||||||
# Patch the TAG from configs.
|
# Patch the TAG from configs.
|
||||||
if self.repos.patch_repo_tag:
|
if self.repos.patch_repo_tag:
|
||||||
|
|
Loading…
Reference in a new issue