build-system/gnu: Make gzip files writable before resetting timestamps.

guix/build/gnu-build-system.scm (reset-gzip-timestamps): Ensure gzip
files are writable before resetting their timestamps.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Sarah Morgensen 2021-07-24 23:12:04 -07:00 committed by Maxim Cournoyer
parent c61e742854
commit 0f71f55a60
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

@ -598,6 +598,8 @@ and 'man/'. This phase moves directories to the right place if needed."
(string-suffix? ".tgz" file))
(gzip-file? file)))
#:stat lstat)))
;; Ensure the files are writable.
(for-each make-file-writable files)
(for-each reset-gzip-timestamp files)))
(match outputs