From 48de5f178275a9361f9d9c7fe983bac606b0b2c4 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 30 May 2021 19:50:46 +0200 Subject: [PATCH] a shell for repo-add --- master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master.py b/master.py index 7ff7da2..872472a 100644 --- a/master.py +++ b/master.py @@ -114,7 +114,7 @@ def do_repo_work() -> None: for repo in repos: os.chdir(os.path.join(config["basedir"]["repo"], repo, "os", config["arch"])) args = ["repo-add", "-s", "-v", "-p", "-n", repo + ".db.tar.xz", "*.zst"] - r_res = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + r_res = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) logging.debug("[REPO-ADD] %s", r_res.stdout.decode(errors="ignore")) if r_res.returncode: logging.error("[REPO/%s] Repo action failed: %s", repo, r_res.stdout.decode(errors="ignore"))