From d7eab665004a3fd4fd77d32251fcdb777d02fccc Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 28 May 2021 04:25:16 +0200 Subject: [PATCH] add to repo-add queue while in copy lock --- master.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/master.py b/master.py index 8f6ff23..e228ed9 100644 --- a/master.py +++ b/master.py @@ -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))