Hardlink or copy scratch builds always

JIRA: RHELCMP-1566
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-08-07 11:27:23 +08:00
parent a294a05726
commit 9920aa7a74
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ class Linker(kobo.log.LoggingBase):
if src == dst:
return
# Always hardlink or copy scratch builds
if "/work/tasks/" in src:
self._link_file(src, dst, "hardlink-or-copy")
old_src = src
if relative:
src = relative_path(src, dst)