diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-07-08 18:34:39 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-07-23 21:43:24 +0200 |
commit | 6d668a16be4af017aacf8e20ecfa044b84d637d3 (patch) | |
tree | ffa4ee5bdc3c59c9cc9f821cf6ec7895ed5a2763 /guix/build | |
parent | 1a64a7b31434fcef48be36f1ddc3e3f0ecbfed1a (diff) | |
download | gnu-guix-6d668a16be4af017aacf8e20ecfa044b84d637d3.tar gnu-guix-6d668a16be4af017aacf8e20ecfa044b84d637d3.tar.gz |
build: svn-fetch: Use "svn export".
* guix/build/svn.scm (svn-fetch): Use "svn export" instead of "svn checkout"
because it does not include the .svn directory and allows us to fetch single
files.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/svn.scm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/guix/build/svn.scm b/guix/build/svn.scm index 913f89471b..e3188add3e 100644 --- a/guix/build/svn.scm +++ b/guix/build/svn.scm @@ -36,7 +36,7 @@ "Fetch REVISION from URL into DIRECTORY. REVISION must be an integer, and a valid Subversion revision. Return #t on success, #f otherwise." (apply invoke svn-command - "checkout" "--non-interactive" + "export" "--non-interactive" ;; Trust the server certificate. This is OK as we ;; verify the checksum later. This can be removed when ;; ca-certificates package is added. @@ -46,13 +46,6 @@ valid Subversion revision. Return #t on success, #f otherwise." (string-append "--password=" password)) '()) ,url ,directory)) - - ;; The contents of '.svn' vary as a function of the current status - ;; of the repo. Since we want a fixed output, this directory needs - ;; to be taken out. - (with-directory-excursion directory - (for-each delete-file-recursively (find-files "." "^\\.svn$" #:directories? #t))) - #t) ;;; svn.scm ends here |