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