mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for slots
This commit is contained in:
parent
7681fb7320
commit
32f3112d0d
20 changed files with 20 additions and 0 deletions
|
@ -24,6 +24,7 @@ from slpkg.models.models import session as Session
|
||||||
class Packages(Configs):
|
class Packages(Configs):
|
||||||
|
|
||||||
def __init__(self, packages: list, flags: list, repo: str, mode: str):
|
def __init__(self, packages: list, flags: list, repo: str, mode: str):
|
||||||
|
__slots__ = 'packages', 'flags', 'repo', 'mode'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.packages: list = packages
|
self.packages: list = packages
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
|
@ -10,6 +10,7 @@ class BinQueries:
|
||||||
""" Queries class for the binary repositories. """
|
""" Queries class for the binary repositories. """
|
||||||
|
|
||||||
def __init__(self, repo: str):
|
def __init__(self, repo: str):
|
||||||
|
__slots__ = 'repo'
|
||||||
self.repo: str = repo
|
self.repo: str = repo
|
||||||
self.session = Session
|
self.session = Session
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ class Required:
|
||||||
the right order to install. """
|
the right order to install. """
|
||||||
|
|
||||||
def __init__(self, name: str, repo: str):
|
def __init__(self, name: str, repo: str):
|
||||||
|
__slots__ = 'name,' 'repo'
|
||||||
self.name: str = name
|
self.name: str = name
|
||||||
self.repo: str = repo
|
self.repo: str = repo
|
||||||
self.repos = Repositories()
|
self.repos = Repositories()
|
||||||
|
|
|
@ -16,6 +16,7 @@ class CheckUpdates(Configs):
|
||||||
""" Check for changes in the ChangeLog file. """
|
""" Check for changes in the ChangeLog file. """
|
||||||
|
|
||||||
def __init__(self, flags: list, repo: str):
|
def __init__(self, flags: list, repo: str):
|
||||||
|
__slots__ = 'flags', 'repo'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.repo = repo
|
self.repo = repo
|
||||||
|
|
|
@ -15,6 +15,7 @@ class Md5sum:
|
||||||
""" Checksum the sources. """
|
""" Checksum the sources. """
|
||||||
|
|
||||||
def __init__(self, flags: list):
|
def __init__(self, flags: list):
|
||||||
|
__slots__ = 'flags'
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.ascii = Ascii()
|
self.ascii = Ascii()
|
||||||
self.utils = Utilities()
|
self.utils = Utilities()
|
||||||
|
|
|
@ -10,6 +10,7 @@ class CleanLogsDependencies:
|
||||||
""" Cleans the logs from packages. """
|
""" Cleans the logs from packages. """
|
||||||
|
|
||||||
def __init__(self, flags: list):
|
def __init__(self, flags: list):
|
||||||
|
__slots__ = 'flags'
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.session = Session
|
self.session = Session
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ class Dependees(Configs):
|
||||||
""" Show which packages depend. """
|
""" Show which packages depend. """
|
||||||
|
|
||||||
def __init__(self, packages: list, flags: list):
|
def __init__(self, packages: list, flags: list):
|
||||||
|
__slots__ = 'packages', 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.packages: list = packages
|
self.packages: list = packages
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
|
@ -19,6 +19,7 @@ class Download(Configs):
|
||||||
""" Download the slackbuilds with the sources only. """
|
""" Download the slackbuilds with the sources only. """
|
||||||
|
|
||||||
def __init__(self, directory: Path, flags: list):
|
def __init__(self, directory: Path, flags: list):
|
||||||
|
__slots__ = 'directory', 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.directory: Path = directory
|
self.directory: Path = directory
|
||||||
|
|
|
@ -13,6 +13,7 @@ from slpkg.utilities import Utilities
|
||||||
class Downloader(Configs):
|
class Downloader(Configs):
|
||||||
|
|
||||||
def __init__(self, path: Union[str, Path], urls: list, flags: list):
|
def __init__(self, path: Union[str, Path], urls: list, flags: list):
|
||||||
|
__slots__ = 'path', 'urls', 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.path = path
|
self.path = path
|
||||||
self.urls: list = urls
|
self.urls: list = urls
|
||||||
|
|
|
@ -17,6 +17,7 @@ class RemovePackages(Configs):
|
||||||
""" Removes installed packages. """
|
""" Removes installed packages. """
|
||||||
|
|
||||||
def __init__(self, packages: list, flags: list):
|
def __init__(self, packages: list, flags: list):
|
||||||
|
__slots__ = 'packages', 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.packages: list = packages
|
self.packages: list = packages
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
|
@ -9,6 +9,7 @@ class Requires:
|
||||||
the right order to install. """
|
the right order to install. """
|
||||||
|
|
||||||
def __init__(self, name: str):
|
def __init__(self, name: str):
|
||||||
|
__slots__ = 'name'
|
||||||
self.name: str = name
|
self.name: str = name
|
||||||
self.sbo_repo_dict: dict = SBoQueries('').repository_data()
|
self.sbo_repo_dict: dict = SBoQueries('').repository_data()
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ class SBoQueries(Configs):
|
||||||
""" Queries class for the sbo repository. """
|
""" Queries class for the sbo repository. """
|
||||||
|
|
||||||
def __init__(self, name: str):
|
def __init__(self, name: str):
|
||||||
|
__slots__ = 'name'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.name: str = name
|
self.name: str = name
|
||||||
self.session = Session
|
self.session = Session
|
||||||
|
|
|
@ -29,6 +29,7 @@ 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, slackbuilds: list, flags: list, mode: str):
|
||||||
|
__slots__ = 'slackbuilds', 'flags', 'mode'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.slackbuilds: list = slackbuilds
|
self.slackbuilds: list = slackbuilds
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
|
@ -12,6 +12,7 @@ class SearchPackage(Configs):
|
||||||
""" Search packages from the repositories. """
|
""" Search packages from the repositories. """
|
||||||
|
|
||||||
def __init__(self, flags=None):
|
def __init__(self, flags=None):
|
||||||
|
__slots__ = 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ class Tracking(Configs):
|
||||||
""" Tracking of the package dependencies. """
|
""" Tracking of the package dependencies. """
|
||||||
|
|
||||||
def __init__(self, flags: list):
|
def __init__(self, flags: list):
|
||||||
|
__slots__ = 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ class UpdateRepository(Configs):
|
||||||
""" Deletes and install the data. """
|
""" Deletes and install the data. """
|
||||||
|
|
||||||
def __init__(self, flags: list, repo: str):
|
def __init__(self, flags: list, repo: str):
|
||||||
|
__slots__ = 'flags', 'repo'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.repo: str = repo
|
self.repo: str = repo
|
||||||
|
|
|
@ -17,6 +17,7 @@ class Upgrade(Configs):
|
||||||
""" Upgrade the installed packages. """
|
""" Upgrade the installed packages. """
|
||||||
|
|
||||||
def __init__(self, flags: list, repo=None):
|
def __init__(self, flags: list, repo=None):
|
||||||
|
__slots__ = 'flags', 'repo'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.repo: str = repo
|
self.repo: str = repo
|
||||||
|
|
|
@ -7,6 +7,7 @@ from slpkg.configs import Configs
|
||||||
class Help(Configs):
|
class Help(Configs):
|
||||||
|
|
||||||
def __init__(self, command: str, flags: list):
|
def __init__(self, command: str, flags: list):
|
||||||
|
__slots__ = 'command', 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.command: str = command
|
self.command: str = command
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
|
@ -17,6 +17,7 @@ class ViewPackage(Configs):
|
||||||
""" View the repository packages. """
|
""" View the repository packages. """
|
||||||
|
|
||||||
def __init__(self, flags: list):
|
def __init__(self, flags: list):
|
||||||
|
__slots__ = 'flags'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ from slpkg.models.models import session as Session
|
||||||
class ViewMessage(Configs):
|
class ViewMessage(Configs):
|
||||||
|
|
||||||
def __init__(self, flags: list, repo=None):
|
def __init__(self, flags: list, repo=None):
|
||||||
|
__slots__ = 'flags', 'repo'
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
self.repo: str = repo
|
self.repo: str = repo
|
||||||
|
|
Loading…
Add table
Reference in a new issue