mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Added message for db loading
This commit is contained in:
parent
f502edc765
commit
d9832c265d
1 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
from slpkg.configs import Configs
|
||||
from slpkg.utilities import Utilities
|
||||
from slpkg.views.asciibox import AsciiBox
|
||||
from slpkg.sbos.queries import SBoQueries
|
||||
from slpkg.repositories import Repositories
|
||||
from slpkg.binaries.queries import BinQueries
|
||||
|
@ -18,6 +19,7 @@ class SearchPackage(Configs):
|
|||
|
||||
self.utils = Utilities()
|
||||
self.repos = Repositories()
|
||||
self.ascii = AsciiBox()
|
||||
|
||||
self.matching: int = 0
|
||||
self.repo_data: dict = {}
|
||||
|
@ -29,14 +31,17 @@ class SearchPackage(Configs):
|
|||
('-m', '--no-case'), flags)
|
||||
|
||||
def search(self) -> None:
|
||||
print(f'The list below shows the repo '
|
||||
f'packages that contains \'{", ".join([p for p in self.packages])}\':\n')
|
||||
print('\rDatabase loading... ', end='')
|
||||
|
||||
if self.repository == '*':
|
||||
self.search_to_all_repositories()
|
||||
else:
|
||||
self.search_to_the_repository()
|
||||
|
||||
print(f'{self.yellow}{self.ascii.done}{self.endc}')
|
||||
print(f'The list below shows the repo '
|
||||
f'packages that contains \'{", ".join([p for p in self.packages])}\':\n')
|
||||
|
||||
self.summary_of_searching()
|
||||
|
||||
def search_to_all_repositories(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue