kojiwrapper: Allow changing mode of multiple files
The directory with logs should have updated owner and permission as well as the actual output. This patch lays foundation for that by allowing multiple paths to be specified. JIRA: COMPOSE-3545 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8acd2c9689
commit
f2bbf35429
5 changed files with 16 additions and 13 deletions
|
|
@ -68,7 +68,7 @@ class Runroot(kobo.log.LoggingBase):
|
|||
runroot_tag = self.compose.conf["runroot_tag"]
|
||||
|
||||
if output_dir:
|
||||
kwargs["destdir"] = output_dir
|
||||
kwargs.setdefault("chown_paths", []).append(output_dir)
|
||||
|
||||
koji_wrapper = kojiwrapper.KojiWrapper(self.compose.conf["koji_profile"])
|
||||
koji_cmd = koji_wrapper.get_runroot_cmd(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue