Instead of doing it from the main script the copy logic could live in the buildinstall thread. Once the koji task finishes, the outputs can be copied into compose/ dir. This needs to handle both lorax (1 copy) and legacy buildinstall (one task copied to multiple variants).
compose/
The advantages should be:
Metadata Update from @lsedlar: - Issue tagged with: cleanup
Commit 2dd30008 fixes this issue
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/pungi/pungi/issues/959
Please continue any further discussion there.