add to repo-add queue while in copy lock

This commit is contained in:
2021-05-28 04:25:16 +02:00
parent 8f396ead36
commit d7eab66500

View File

@@ -89,14 +89,14 @@ def build(pkgbuild: str, repo: str, todo: dict) -> None:
os.path.join(config["basedir"]["repo"], repo, "os", config["arch"] + "/"))
shutil.copy2(pkg, os.path.join(config["basedir"]["repo"], repo, "os", config["arch"] + "/"))
# repo
logging.debug("[%s/%s/%s] Adding packages to todo list: %s", process_name, repo, name,
", ".join(glob.glob("*.pkg.tar.zst")))
todo[repo].extend(glob.glob("*.pkg.tar.zst"))
logging.debug("[GIT] %s", subprocess.run(["git", "clean", "-xdff"], check=False, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT).stdout.decode(errors="ignore"))
# repo
logging.debug("[%s/%s/%s] Adding packages to todo list: %s", process_name, repo, name,
", ".join(glob.glob("*.pkg.tar.zst")))
todo[repo].extend(glob.glob("*.pkg.tar.zst"))
logging.info("[%s/%s/%s] Build successful (%s)", process_name, repo, name,
format_timespan(time.time() - start_time))