diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2023-05-13 15:31:06 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-10-14 21:14:39 +0100 |
commit | 405e230d281cb1c50513d32a1fd45fdcb1f247ab (patch) | |
tree | 1ab4f9b5bc188fd6d1ccc0ef5c30ef2116c7789a /guix/build/python-build-system.scm | |
parent | 56a5e8c5c54a8ed885d26b6d823214199c52161a (diff) |
build-system/python: Ignore symlinks when changing mtime.
* guix/build/python-build-system.scm (ensure-no-mtimes-pre-1980): Ignore
'symlink.
Diffstat (limited to 'guix/build/python-build-system.scm')
-rw-r--r-- | guix/build/python-build-system.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/build/python-build-system.scm b/guix/build/python-build-system.scm index aa04664b25..8e18d6d0df 100644 --- a/guix/build/python-build-system.scm +++ b/guix/build/python-build-system.scm @@ -37,6 +37,7 @@ #:use-module (srfi srfi-26) #:export (%standard-phases add-installed-pythonpath + ensure-no-mtimes-pre-1980 site-packages python-version python-build)) @@ -270,7 +271,8 @@ installed with setuptools." ;; timestamps before 1980. (let ((early-1980 315619200)) ; 1980-01-02 UTC (ftw "." (lambda (file stat flag) - (unless (<= early-1980 (stat:mtime stat)) + (unless (or (<= early-1980 (stat:mtime stat)) + (eq? (stat:type stat) 'symlink)) (utime file early-1980 early-1980)) #t)))) |