From da791ed15cbf93d23d7dfa345c01467e7fd52063 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 22 Apr 2021 14:03:12 +0200 Subject: [PATCH] Fix can't link XDEV using repos as pkgset_sources Trying to compose from external classic repositories return an error trying the hardling from a yum cache directory located in /tmp to the target directory in another filesystem. This commit fixes this using the 'link' method form linker module which handle the link_type configuration parameter instead of the hardcoded method 'hardlink'. Change-Id: Ib79cfbd72f9def6462fddb2ae368730c55f257cd Signed-off-by: Romain Forlot --- pungi/gather_dnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 5fecc7f0..97ebf48e 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -1029,7 +1029,7 @@ class Gather(GatherBase): # Link downloaded package in (or link package from file repo) try: - linker.hardlink(pkg.localPkg(), target) + linker.link(pkg.localPkg(), target) except Exception: self.logger.error("Unable to link %s from the yum cache." % pkg.name) raise