Skip to content

Commit 0f2d975

Browse files
committed
cmd-koji-upload: Use buildroot from kwargs as tmpdir parent instead of hardcoded path
- This change makes the parent directory configurable by using the `buildroot` value passed in `kwargs`, improving flexibility and compatibility with different build environments. Signed-off-by: Renata Ravanelli <[email protected]>
1 parent 677fe26 commit 0f2d975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cmd-koji-upload

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ class Build(_Build):
105105
# new kind of image here, but _Build is geared towards that and has a
106106
# image_name_base() member that wants a platform string to name stuff
107107
self.platform = "koji"
108-
# Use a tempdir in builds/ because we want to use large scratch space
109-
self._tmpdir = tempfile.mkdtemp(prefix="koji-build", dir="builds/")
108+
self._tmpdir = tempfile.mkdtemp(prefix="koji-build", dir=kwargs['buildroot'])
110109
self._state_file_tpl = self._tmpdir + "/cosa-cmd-koji-upload-{name}-{version}-{release}"
111110
kwargs.update({
112111
"require_commit": True,

0 commit comments

Comments
 (0)