From 1094efcec5a49e7be763383213144d277e55d1ba Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 30 May 2021 18:15:40 +0200 Subject: [PATCH] fixed repo parsing --- master.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/master.py b/master.py index c8dfe69..c4ef074 100644 --- a/master.py +++ b/master.py @@ -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.*"