From 787500f33972aaea116a85b831436221d17790a9 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 21 Aug 2015 18:53:03 -0600 Subject: [PATCH] reduce timestamp adjustments in `raco pkg create` Comments in the implementation suggest that a timestamp specialization was intended for directories, which makes sense given that directory-modification dates are not preserved when unpacking an archive. The change also affected all bytecode timestamps, however, which can create inconsistencies across package creations. --- racket/collects/pkg/private/create.rkt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/racket/collects/pkg/private/create.rkt b/racket/collects/pkg/private/create.rkt index 4efe46aa9a..ff1d6b5d51 100644 --- a/racket/collects/pkg/private/create.rkt +++ b/racket/collects/pkg/private/create.rkt @@ -47,8 +47,7 @@ ;; To make checksums more consistent, set a directory's timestamp to ;; the latest time of any of its source files. (define (use-real-timestamp? p) - (and (file-exists? p) - (regexp-match? #rx"[.](?:rkt|ss|scrbl|txt)$" p))) + (file-exists? p)) (define latest-timestamp (for/fold ([ts #f]) ([f (in-directory dir)]) (define fts (and (use-real-timestamp? f)