pungi/pungi/phases/pkgset
Lubomír Sedlář 02ace28fe4 pkgset: Hardlink downloaded packages
When pungi-gather (or old pungi) download the packages from repos into
work/$arch/, they are linked to work/global/. This was using link_type
configuration option.

However if that is set to symlink, we get a relative symlink in
work/global/ which is later copied under the compose/ directory. Since
it's a relative symlink, it gets broken by this.

The fix is to hardlink the downloaded packages instead in the first
step. Since both the source and destination are in work/ directory, we
know it's the same volume and hardlinks should work. There is a fallback
to copy just to be sure, but it shouldn't ever be used.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2020-01-06 10:49:25 +01:00
..
sources pkgset: Hardlink downloaded packages 2020-01-06 10:49:25 +01:00
__init__.py pkgset: Initialize path_prefix to empty value 2019-09-23 09:40:36 +02:00
common.py pkgset: Only reuse valid old repo 2019-10-22 15:32:13 +02:00
pkgsets.py pkgset: Remove fast_merge method 2019-09-03 09:31:18 +02:00
source.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00