mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated searcing
This commit is contained in:
parent
c29e6e10ea
commit
f3b479ecd3
1 changed files with 4 additions and 4 deletions
|
@ -33,8 +33,8 @@ def search_pkg(name, repo):
|
|||
"""
|
||||
utils = Utils()
|
||||
black = BlackList()
|
||||
PACKAGES_TXT = utils.read_file(_meta_.lib_path + f"{repo}_repo/PACKAGES.TXT")
|
||||
names = list(black.package_name(PACKAGES_TXT))
|
||||
blacklist = list(BlackList().get_black())
|
||||
if name in names and name not in blacklist:
|
||||
text = utils.read_file(_meta_.lib_path + f"{repo}_repo/PACKAGES.TXT")
|
||||
PACKAGES_TXT = list(utils.package_name(text))
|
||||
blacklist = list(black.get_black())
|
||||
if name in PACKAGES_TXT and name not in blacklist:
|
||||
return name
|
Loading…
Add table
Reference in a new issue