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()
|
utils = Utils()
|
||||||
black = BlackList()
|
black = BlackList()
|
||||||
PACKAGES_TXT = utils.read_file(_meta_.lib_path + f"{repo}_repo/PACKAGES.TXT")
|
text = utils.read_file(_meta_.lib_path + f"{repo}_repo/PACKAGES.TXT")
|
||||||
names = list(black.package_name(PACKAGES_TXT))
|
PACKAGES_TXT = list(utils.package_name(text))
|
||||||
blacklist = list(BlackList().get_black())
|
blacklist = list(black.get_black())
|
||||||
if name in names and name not in blacklist:
|
if name in PACKAGES_TXT and name not in blacklist:
|
||||||
return name
|
return name
|
Loading…
Add table
Reference in a new issue