fixed wring search glob for packages
This commit is contained in:
@@ -34,10 +34,16 @@ def already_running():
|
||||
|
||||
|
||||
def find_all_files_for_pkg(name, repo):
|
||||
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.*"
|
||||
logging.debug("[REPO] Search for package %s (path=%s)", name, searchpath)
|
||||
pkgs = glob.glob(searchpath)
|
||||
|
||||
for p in pkgs:
|
||||
if p.endswith(".sig"):
|
||||
pkgs.remove(p)
|
||||
|
||||
logging.debug("[REPO] Found %s", pkgs)
|
||||
|
||||
return pkgs
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user