fixed repo parsing

This commit is contained in:
2021-05-30 18:15:40 +02:00
parent b6dfbbb643
commit 1094efcec5

View File

@@ -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.*"