mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
serialization: 'restore-file' sets canonical timestamp and permissions.
* guix/serialization.scm (restore-file): Set the permissions and mtime of FILE. * guix/nar.scm (finalize-store-file): Pass #:reset-timestamps? #f to 'register-items'. * tests/nar.scm (rm-rf): Add 'chmod' calls to ensure files are writable. ("write-file + restore-file with symlinks"): Ensure every file in OUTPUT passes 'canonical-file?'. * tests/guix-archive.sh: Run "chmod -R +w" before "rm -rf".
This commit is contained in:
parent
465d2cb286
commit
ed7d02f7c1
4 changed files with 26 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
# GNU Guix --- Functional package management for GNU
|
||||
# Copyright © 2013, 2014, 2015, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
# Copyright © 2013, 2014, 2015, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
#
|
||||
# This file is part of GNU Guix.
|
||||
#
|
||||
|
@ -28,7 +28,7 @@ tmpdir="t-archive-dir-$$"
|
|||
rm -f "$archive" "$archive_alt"
|
||||
rm -rf "$tmpdir"
|
||||
|
||||
trap 'rm -f "$archive" "$archive_alt"; rm -rf "$tmpdir"' EXIT
|
||||
trap 'rm -f "$archive" "$archive_alt"; chmod -R +w "$tmpdir"; rm -rf "$tmpdir"' EXIT
|
||||
|
||||
guix archive --export guile-bootstrap > "$archive"
|
||||
guix archive --export guile-bootstrap:out > "$archive_alt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue