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

View file

@ -598,6 +598,8 @@ (define (process-directory directory)
(string-suffix? ".tgz" file)) (string-suffix? ".tgz" file))
(gzip-file? file))) (gzip-file? file)))
#:stat lstat))) #:stat lstat)))
;; Ensure the files are writable.
(for-each make-file-writable files)
(for-each reset-gzip-timestamp files))) (for-each reset-gzip-timestamp files)))
(match outputs (match outputs