buildinstall: Copy files in thread

Instead of running the copy from the main script explicitly, make it
part of the thread.

This should make things very slightly faster, and the code is much
simpler.

Fixes: https://pagure.io/pungi/issue/959
JIRA: COMPOSE-2604
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-05-09 10:53:00 +02:00
parent dc69281025
commit 2dd30008ae
3 changed files with 126 additions and 221 deletions

View file

@ -384,9 +384,6 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
essentials_phase.start()
essentials_phase.stop()
if not buildinstall_phase.skip():
buildinstall_phase.copy_files()
productimg_phase.start()
productimg_phase.stop()