mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for comments
This commit is contained in:
parent
3e96c649b9
commit
782d451779
1 changed files with 14 additions and 2 deletions
|
@ -27,7 +27,7 @@ class BinsQueries(Configs):
|
|||
self.name: str = ''
|
||||
|
||||
def all_name_packages(self) -> list:
|
||||
""" Returns all the name of the binaries packages. """
|
||||
""" Returns all the names of the binaries packages. """
|
||||
pkgs: tuple = self.session.query(
|
||||
BinariesTable.name,
|
||||
BinariesTable.repo.in_(self.bin_repo)).all()
|
||||
|
@ -35,7 +35,7 @@ class BinsQueries(Configs):
|
|||
return [pkg[0] for pkg in pkgs]
|
||||
|
||||
def all_name_binaries_packages(self) -> list:
|
||||
""" Returns all the binaries packages by repo. """
|
||||
""" Returns all the binaries packages. """
|
||||
pkgs: tuple = self.session.query(
|
||||
BinariesTable.package,
|
||||
BinariesTable.repo.in_(self.bin_repo)).all()
|
||||
|
@ -43,6 +43,7 @@ class BinsQueries(Configs):
|
|||
return [pkg[0] for pkg in pkgs]
|
||||
|
||||
def repository(self) -> str:
|
||||
""" Return the repository name fo the package. """
|
||||
repository: tuple = self.session.query(
|
||||
BinariesTable.repo).filter(BinariesTable.name == self.name).first()
|
||||
|
||||
|
@ -51,6 +52,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def package_name(self) -> str:
|
||||
""" Returns the package name. """
|
||||
pkg: tuple = self.session.query(
|
||||
BinariesTable.name).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -61,6 +63,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def package_bin(self) -> str:
|
||||
""" Returns the binary package. """
|
||||
pkg: tuple = self.session.query(
|
||||
BinariesTable.package).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -71,6 +74,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def version(self) -> str:
|
||||
""" Returns the package version. """
|
||||
pkg: tuple = self.session.query(
|
||||
BinariesTable.version).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -81,6 +85,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def mirror(self) -> str:
|
||||
""" Returns the package mirror. """
|
||||
mir: tuple = self.session.query(
|
||||
BinariesTable.mirror).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -91,6 +96,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def location(self) -> str:
|
||||
""" Returns the package location. """
|
||||
loc: tuple = self.session.query(
|
||||
BinariesTable.location).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -101,6 +107,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def size_comp(self) -> str:
|
||||
""" Returns the package comp size. """
|
||||
size: tuple = self.session.query(
|
||||
BinariesTable.size_comp).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -111,6 +118,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def unsize_comp(self) -> str:
|
||||
""" Returns the package uncomp size. """
|
||||
size: tuple = self.session.query(
|
||||
BinariesTable.unsize_comp).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -121,6 +129,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def required(self) -> str:
|
||||
""" Returns the package required. """
|
||||
req: tuple = self.session.query(
|
||||
BinariesTable.required).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -131,6 +140,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def conflicts(self) -> str:
|
||||
""" Returns the package conflicts. """
|
||||
con: tuple = self.session.query(
|
||||
BinariesTable.conflicts).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -141,6 +151,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def suggests(self) -> str:
|
||||
""" Returns the package suggests. """
|
||||
sug: tuple = self.session.query(
|
||||
BinariesTable.suggests).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
@ -151,6 +162,7 @@ class BinsQueries(Configs):
|
|||
return ''
|
||||
|
||||
def description(self) -> str:
|
||||
""" Returns the package description. """
|
||||
desc: tuple = self.session.query(
|
||||
BinariesTable.description).filter(
|
||||
BinariesTable.name == self.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue