fixed repo parsing
This commit is contained in:
@@ -142,9 +142,9 @@ def find_all_files_for_pkg(name: str, repo: str) -> list:
|
||||
pkgs = []
|
||||
for root, dirs, files in os.walk(os.path.join(config["basedir"]["repo"], repo, "os", config["arch"])):
|
||||
for file in files:
|
||||
res = regex_pkg_repo.match(file)
|
||||
if res:
|
||||
if res.group(1) is name:
|
||||
res = regex_pkg_repo.findall(file)
|
||||
for r in res:
|
||||
if r == name:
|
||||
pkgs.append(os.path.join(root, file))
|
||||
|
||||
# searchpath = os.path.join(config["basedir"]["repo"], repo, "os", config["arch"]) + "/" + name + "-*.pkg.*"
|
||||
|
Reference in New Issue
Block a user