fixed repo selecting

This commit is contained in:
2020-08-12 09:18:50 +02:00
parent 3b3e5e1423
commit 5388586740

View File

@@ -169,11 +169,12 @@ def fill_queue():
for pkgbuild in all_pkgbuild:
path_split = pkgbuild.split("/")
# ignore pkgbuild if in trunk, -any package, testing or on blacklist
if len(path_split) < 5 or "any" in path_split[3] or "testing" in path_split[3] or path_split[1] in config[
"blacklist"]:
# ignore pkgbuild if in trunk, -any package, not in repos, or on blacklist
if path_split[-2] == "trunk" or path_split[-2].split("-")[0] not in config[
"repos"] or "any" in path_split[-2] or path_split[-4] in config["blacklist"]:
to_delete.append(pkgbuild)
logging.debug(to_delete)
final_pkgbuilds = list(set(all_pkgbuild) - set(to_delete))
for pkgb in final_pkgbuilds: