unify logging in repo_worker
This commit is contained in:
@@ -108,7 +108,7 @@ def run_worker(todo: dict) -> None:
|
|||||||
def do_repo_work():
|
def do_repo_work():
|
||||||
for repo in d:
|
for repo in d:
|
||||||
if d[repo]:
|
if d[repo]:
|
||||||
logging.info("[REPO] Adding %s to %s", ", ".join(d[repo]), repo)
|
logging.info("[REPO/%s] Adding %s", repo, ", ".join(d[repo]))
|
||||||
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",
|
args = ["repo-add", "-s", "-v",
|
||||||
os.path.join(config["basedir"]["repo"], repo, "os", config["arch"], repo + ".db.tar.xz")]
|
os.path.join(config["basedir"]["repo"], repo, "os", config["arch"], repo + ".db.tar.xz")]
|
||||||
@@ -127,7 +127,7 @@ def do_repo_work():
|
|||||||
d[repo][:] = []
|
d[repo][:] = []
|
||||||
os.chdir(sys.path[0])
|
os.chdir(sys.path[0])
|
||||||
else:
|
else:
|
||||||
logging.debug("[REPO] Nothing to do for %s", repo)
|
logging.debug("[REPO/%s] Nothing to do", repo)
|
||||||
|
|
||||||
|
|
||||||
def already_running() -> bool:
|
def already_running() -> bool:
|
||||||
|
Reference in New Issue
Block a user