diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index 9be28789..ad88b7b7 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -25,7 +25,6 @@ from slpkg.models.models import session as Session class Packages(Configs): def __init__(self, repository: str, data: dict, packages: list, flags: list, mode: str): - __slots__ = 'repository', 'data', 'packages', 'flags', 'mode' super(Configs, self).__init__() self.data: dict = data self.packages: list = packages diff --git a/slpkg/binaries/queries.py b/slpkg/binaries/queries.py index feb44934..3c9bcbf9 100644 --- a/slpkg/binaries/queries.py +++ b/slpkg/binaries/queries.py @@ -10,7 +10,6 @@ class BinQueries: """ Queries class for the binary repositories. """ def __init__(self, repo: str): - __slots__ = 'repo' self.repo: str = repo self.session = Session diff --git a/slpkg/binaries/required.py b/slpkg/binaries/required.py index cfc81857..3bf6b22a 100644 --- a/slpkg/binaries/required.py +++ b/slpkg/binaries/required.py @@ -9,9 +9,9 @@ from slpkg.repositories import Repositories class Required: """ Creates a list of dependencies with the right order to install. """ + __slots__ = ('data', 'name', 'repos', 'special_repos', 'repo') def __init__(self, data: dict, name: str): - __slots__ = 'data', 'name,' self.data: dict = data self.name: str = name self.repos = Repositories() diff --git a/slpkg/checks.py b/slpkg/checks.py index 7b9b64da..8d9e4ed4 100644 --- a/slpkg/checks.py +++ b/slpkg/checks.py @@ -14,7 +14,6 @@ class Check(Configs): """ Some checks before proceed. """ def __init__(self, repository: str, data: dict): - __slots__ = 'repository', 'data' super(Configs, self).__init__() self.data: dict = data self.repository = repository diff --git a/slpkg/checksum.py b/slpkg/checksum.py index c4947918..74dcc085 100644 --- a/slpkg/checksum.py +++ b/slpkg/checksum.py @@ -18,8 +18,8 @@ class Md5sum: """ Checksum the sources. """ def __init__(self, flags: list): - __slots__ = 'flags' self.flags: list = flags + self.ascii = Ascii() self.errors = Errors() self.utils = Utilities() diff --git a/slpkg/cleanings.py b/slpkg/cleanings.py index 36598d3b..3da27a84 100644 --- a/slpkg/cleanings.py +++ b/slpkg/cleanings.py @@ -18,7 +18,6 @@ class Cleanings(Configs): """ Cleans the logs from packages. """ def __init__(self, flags: list): - __slots__ = 'flags' super(Configs, self).__init__() self.flags: list = flags self.session = Session diff --git a/slpkg/dependees.py b/slpkg/dependees.py index 0beaeae1..e6fe60ea 100644 --- a/slpkg/dependees.py +++ b/slpkg/dependees.py @@ -12,7 +12,6 @@ class Dependees(Configs): """ Show which packages depend. """ def __init__(self, data: dict, packages: list, flags: list, repository: str): - __slots__ = 'data', 'packages', 'flags' super(Configs, self).__init__() self.data: dict = data self.packages: list = packages diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 63f7c849..f2ec735d 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -17,10 +17,10 @@ class Download(Configs): """ Download the slackbuilds with the sources only. """ def __init__(self, directory: Path, flags: list, repository: str): - __slots__ = 'directory', 'flags' super(Configs, self).__init__() self.directory: Path = directory self.flags: list = flags + self.repository: str = repository self.repos = Repositories() self.utils = Utilities() @@ -35,7 +35,7 @@ class Download(Configs): """ Download the package only. """ packages: list = self.utils.apply_package_pattern(data, packages) - view = ViewMessage(self.flags, data) + view = ViewMessage(self.flags, self.repository, data) view.download_packages(packages, self.directory) view.question() diff --git a/slpkg/downloader.py b/slpkg/downloader.py index 14c8d3aa..3e6aced6 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -15,7 +15,6 @@ from slpkg.error_messages import Errors class Downloader(Configs): def __init__(self, path: Union[str, Path], urls: list, flags: list): - __slots__ = 'path', 'urls', 'flags' super(Configs, self).__init__() self.path: Path = path self.urls: list = urls diff --git a/slpkg/logging_deps.py b/slpkg/logging_deps.py index a9fb2536..f61599d3 100644 --- a/slpkg/logging_deps.py +++ b/slpkg/logging_deps.py @@ -12,7 +12,6 @@ class LoggingDeps: """ Logging installed dependencies. """ def __init__(self, repository: str, data: dict): - __slots__ = 'repository', 'data' self.data: dict = data self.utils = Utilities() diff --git a/slpkg/main.py b/slpkg/main.py index 3ddd3d0a..d452674d 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -37,7 +37,6 @@ from slpkg.update_repository import UpdateRepository class Argparse(Configs): def __init__(self, args: list): - __slots__ = 'args' super(Configs).__init__() self.args: list = args self.flags: list = [] diff --git a/slpkg/new_configs.py b/slpkg/new_configs.py index faaf6c4f..5ed6afaf 100644 --- a/slpkg/new_configs.py +++ b/slpkg/new_configs.py @@ -12,7 +12,6 @@ from pathlib import Path class NewConfigs: def __init__(self, options: list): - __slots__ = 'options' self.options: list = options self.etc_path: Path = Path('/etc/slpkg') self.slpkg_config: Path = Path(self.etc_path, 'slpkg.toml') diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index d73516e9..59d3c5f2 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -17,7 +17,6 @@ class RemovePackages(Configs): """ Removes installed packages. """ def __init__(self, packages: list, flags: list): - __slots__ = 'packages', 'flags' super(Configs, self).__init__() self.packages: list = packages self.flags: list = flags diff --git a/slpkg/sbos/dependencies.py b/slpkg/sbos/dependencies.py index 6f3ee414..320b799b 100644 --- a/slpkg/sbos/dependencies.py +++ b/slpkg/sbos/dependencies.py @@ -7,9 +7,9 @@ from typing import Generator class Requires: """ Creates a list of dependencies with the right order to install. """ + __slots__ = ('data', 'name') def __init__(self, data: dict, name: str): - __slots__ = 'data', 'name' self.data: dict = data self.name: str = name diff --git a/slpkg/sbos/queries.py b/slpkg/sbos/queries.py index 9722586d..c51218b3 100644 --- a/slpkg/sbos/queries.py +++ b/slpkg/sbos/queries.py @@ -12,7 +12,6 @@ class SBoQueries(Configs): """ Queries class for the sbo repository. """ def __init__(self, repository: str): - __slots__ = 'repository' super(Configs, self).__init__() self.session = Session diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 5cc8e49b..ce7793ff 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -31,7 +31,6 @@ class Slackbuilds(Configs): """ Download build and install the SlackBuilds. """ def __init__(self, repository: str, data: dict, slackbuilds: list, flags: list, mode: str): - __slots__ = 'repository', 'data', 'slackbuilds', 'flags', 'mode' super(Configs, self).__init__() self.data = data self.slackbuilds: list = slackbuilds diff --git a/slpkg/search.py b/slpkg/search.py index aadef581..adaf6a54 100644 --- a/slpkg/search.py +++ b/slpkg/search.py @@ -11,7 +11,6 @@ class SearchPackage(Configs): """ Search packages from the repositories. """ def __init__(self, repository: str): - __slots__ = 'repository' super(Configs, self).__init__() self.utils = Utilities() diff --git a/slpkg/tracking.py b/slpkg/tracking.py index 8c01f727..759dd019 100644 --- a/slpkg/tracking.py +++ b/slpkg/tracking.py @@ -10,7 +10,6 @@ class Tracking(Configs): """ Tracking of the package dependencies. """ def __init__(self, flags: list, repository: str): - __slots__ = 'flags', 'repository' super(Configs, self).__init__() self.flags: list = flags diff --git a/slpkg/update_repository.py b/slpkg/update_repository.py index db533c15..6ce88f8f 100644 --- a/slpkg/update_repository.py +++ b/slpkg/update_repository.py @@ -21,7 +21,6 @@ class UpdateRepository(Configs): """ Deletes and install the data. """ def __init__(self, flags: list, repository: str): - __slots__ = 'flags', 'repository' super(Configs, self).__init__() self.flags: list = flags self.repository: str = repository diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index c002bb0d..4b0b43d4 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -15,7 +15,6 @@ class Upgrade(Configs): """ Upgrade the installed packages. """ def __init__(self, repository: str, data: dict): - __slots__ = 'repository', 'data' super(Configs, self).__init__() self.repository = repository self.data: dict = data diff --git a/slpkg/views/help_commands.py b/slpkg/views/help_commands.py index 8ee17547..6daa01c8 100644 --- a/slpkg/views/help_commands.py +++ b/slpkg/views/help_commands.py @@ -7,7 +7,6 @@ from slpkg.configs import Configs class Help(Configs): def __init__(self, command: str, flags: list): - __slots__ = 'command', 'flags' super(Configs, self).__init__() self.command: str = command self.flags: list = flags diff --git a/slpkg/views/view_package.py b/slpkg/views/view_package.py index a68f8f8e..4b793638 100644 --- a/slpkg/views/view_package.py +++ b/slpkg/views/view_package.py @@ -15,7 +15,6 @@ class ViewPackage(Configs): """ View the repository packages. """ def __init__(self, flags: list): - __slots__ = 'flags' super(Configs, self).__init__() self.flags: list = flags diff --git a/slpkg/views/views.py b/slpkg/views/views.py index cd921a7d..cc1af4b3 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -19,7 +19,6 @@ from slpkg.models.models import session as Session class ViewMessage(Configs): def __init__(self, flags: list, repository: str, data=None): - __slots__ = 'flags', 'data' super(Configs, self).__init__() self.flags: list = flags self.repository = repository