diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-11-04 22:05:32 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-11-06 23:21:24 +0100 |
commit | 72dc64f8f720268930eed448abfc15d2a0eca3cf (patch) | |
tree | 25ba24f00fc197f9b53a5921faa09d8f16f0c85f /tests/guix-download.sh | |
parent | 1ff53787dbd4b1846ae523aef86ada3996de5e6d (diff) | |
download | patches-72dc64f8f720268930eed448abfc15d2a0eca3cf.tar patches-72dc64f8f720268930eed448abfc15d2a0eca3cf.tar.gz |
store-copy: Canonicalize the mtime and permissions of the store copy.
Fixes a bug whereby directories in the output of 'guix pack -f tarball'
would not be read-only.
* guix/build/store-copy.scm (reset-permissions): New procedure.
(populate-store): Pass #:keep-mtime? #t to 'copy-recursively'. Call
'reset-permissions'.
* tests/pack.scm ("self-contained-tarball"): In CHECK, define
'canonical?' and use it to check that every file has an mtime of 1 and
is read-only.
* tests/guix-pack.sh: Invoke "chmod -Rf +w" before "rm -rf" in trap.
Diffstat (limited to 'tests/guix-download.sh')
0 files changed, 0 insertions, 0 deletions