unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32287] [PATCH] Reproducible svn checkouts
@ 2018-07-27 10:36 Julien Lepiller
  2018-07-29 13:59 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Lepiller @ 2018-07-27 10:36 UTC (permalink / raw)
  To: 32287

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

Some svn checkouts have sub-repositories that have their own .svn
folder. These folders contain timestamps, so this patch removes
every .svn folder in the result of the checkout, instead of only the
top-level one.

[-- Attachment #2: 0001-guix-svn-Remove-all-.svn-folders.patch --]
[-- Type: text/x-patch, Size: 852 bytes --]

From 93aa06821d62ba902d6b3fbf5ece0cbb9d9ec797 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
Date: Fri, 6 Jul 2018 18:32:50 +0200
Subject: [PATCH] guix: svn: Remove all .svn folders.

* guix/build/svn.scm (svn-fetch): Remove all .svn folders as they contain
timestamps.
---
 guix/build/svn.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/svn.scm b/guix/build/svn.scm
index 252d1d4ee..41bbfdc87 100644
--- a/guix/build/svn.scm
+++ b/guix/build/svn.scm
@@ -51,7 +51,7 @@ valid Subversion revision.  Return #t on success, #f otherwise."
   ;; of the repo.  Since we want a fixed output, this directory needs
   ;; to be taken out.
   (with-directory-excursion directory
-    (delete-file-recursively ".svn"))
+    (for-each delete-file-recursively (find-files "." "\\.svn")))
 
   #t)
 
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-19 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-27 10:36 [bug#32287] [PATCH] Reproducible svn checkouts Julien Lepiller
2018-07-29 13:59 ` Ludovic Courtès
2018-08-19 15:52   ` bug#32287: " Julien Lepiller
2018-08-19 21:47     ` [bug#32287] " Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).