ostree_container: Use unique temporary directory

The config repository is cloned into a path that conflicts with the
regular ostree phase. Let's use a unique name to avoid that problem.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit 7e779aa90f)
This commit is contained in:
Lubomír Sedlář 2024-01-18 10:06:27 +01:00 committed by Stepan Oksanichenko
parent dca3be5861
commit bb2e32132e
Signed by: soksanichenko
GPG Key ID: AB9983172AB1E45B

View File

@ -70,7 +70,7 @@ class OSTreeContainerThread(WorkerThread):
def worker(self, compose, variant, arch, config):
msg = "OSTree phase for variant %s, arch %s" % (variant.uid, arch)
self.pool.log_info("[BEGIN] %s" % msg)
workdir = compose.paths.work.topdir("ostree-%d" % self.num)
workdir = compose.paths.work.topdir("ostree-container-%d" % self.num)
self.logdir = compose.paths.log.topdir(
"%s/%s/ostree-container-%d" % (arch, variant.uid, self.num)
)