a shell for repo-add
This commit is contained in:
@@ -114,7 +114,7 @@ def do_repo_work() -> None:
|
|||||||
for repo in repos:
|
for repo in repos:
|
||||||
os.chdir(os.path.join(config["basedir"]["repo"], repo, "os", config["arch"]))
|
os.chdir(os.path.join(config["basedir"]["repo"], repo, "os", config["arch"]))
|
||||||
args = ["repo-add", "-s", "-v", "-p", "-n", repo + ".db.tar.xz", "*.zst"]
|
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"))
|
logging.debug("[REPO-ADD] %s", r_res.stdout.decode(errors="ignore"))
|
||||||
if r_res.returncode:
|
if r_res.returncode:
|
||||||
logging.error("[REPO/%s] Repo action failed: %s", repo, r_res.stdout.decode(errors="ignore"))
|
logging.error("[REPO/%s] Repo action failed: %s", repo, r_res.stdout.decode(errors="ignore"))
|
||||||
|
Reference in New Issue
Block a user