From 0ffc9862a7ffda6339e31d9594fc58c75a3292ad Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Jan 18 2018 22:30:23 +0000 Subject: Always chdir back to the workdir for every package Signed-off-by: Patrick Uiterwijk --- diff --git a/ansible/library/fedcontainer_rebuild.py b/ansible/library/fedcontainer_rebuild.py index 8d47444..5f2311b 100644 --- a/ansible/library/fedcontainer_rebuild.py +++ b/ansible/library/fedcontainer_rebuild.py @@ -152,10 +152,9 @@ def rebuild(branch, containers, user, stage, koji_bin=None, koji_profile=None): # - Open the Dockerfile # - # Change directories to where we can do some work - os.chdir(work_dir) - for container in containers: + # chdir to the work_dir to get a clean slate + os.chdir(work_dir) # Clone the DistGit repo cmd = fedpkg_prefix + ['clone', '{}/{}'.format(cntr_ns, container)]