Make sure old pkgset arch repo exists when reuing
JIRA: RHELCMP-2482 Fixes: https://pagure.io/pungi/issue/1424 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
4623536b24
commit
866b881072
@ -117,7 +117,7 @@ def _create_arch_repo(worker_thread, args, task_num):
|
||||
reuse = getattr(pkgset, "reuse", None)
|
||||
if reuse:
|
||||
old_repo_dir = compose.paths.old_compose_path(repo_dir)
|
||||
if os.path.isdir(old_repo_dir):
|
||||
if old_repo_dir and os.path.isdir(old_repo_dir):
|
||||
msg = "Copying repodata for reuse: %s" % old_repo_dir
|
||||
try:
|
||||
compose.log_info("[BEGIN] %s", msg)
|
||||
|
Loading…
Reference in New Issue
Block a user