Maxim Cournoyer 4f3bdc8f21
pack: Prevent duplicate files in tar archives.
Tar translate duplicate files in the archive into hard links.  These can cause
problems, as not every tool support them; for example dpkg doesn't.

* gnu/system/file-systems.scm (reduce-directories): New procedure.
(file-prefix?): Lift the restriction on file prefix.  The procedure can be
useful for comparing relative file names.  Adjust doc.
(file-name-depth): New procedure, extracted from ...
(btrfs-store-subvolume-file-name): ... here.
* guix/scripts/pack.scm (self-contained-tarball/builder): Use
reduce-directories.
* tests/file-systems.scm ("reduce-directories"): New test.
2021-06-29 14:53:21 -04:00
..
2019-09-23 11:56:40 -07:00
2020-07-11 12:33:01 +02:00
2021-06-03 13:05:18 +02:00
2021-06-18 14:18:07 +02:00
2021-06-03 13:05:18 +02:00
2021-06-29 00:00:14 +02:00
2020-12-01 11:34:10 +01:00