build-system/pyproject: ensure-no-mtimes-pre-1980: Fix ftw use.

In (ftw startname proc), proc should return #t to continue,
or any other value to stop.

* guix/build/pyproject-build-system.scm (ensure-no-mtimes-pre-1980):
  Mirror the implementation in guix/build/pyproject-build-system.scm.

References: https://www.gnu.org/software/guile/manual/html_node/File-Tree-Walk.html#index-ftw
Change-Id: Ifb5d4ab35dfac0c164ea1ac7cf2a1fdf043d1d22
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nguyễn Gia Phong 2026-01-21 16:29:28 +09:00 committed by Sharlatan Hellseher
parent 2ef3da0266
commit c3ed22e115
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -130,7 +130,8 @@ running checks after installing the package."
(ftw "." (lambda (file stat flag)
(unless (or (<= early-1980 (stat:mtime stat))
(eq? (stat:type stat) 'symlink))
(utime file early-1980 early-1980))))))
(utime file early-1980 early-1980))
#t))))
(define* (enable-bytecode-determinism #:rest _)
"Improve determinism of pyc files."