svn-download: Handle the single file case when downloading a nar.
Delete the output so that download-nar doesn't error when trying to restore. * guix/svn-download.scm (svn-multi-fetch): Delete the output if it exists prior to calling download-nar.
parent
32e48b8b43
commit
c1f7156d55
|
@ -203,7 +203,10 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f."
|
|||
#:password (getenv "svn password")))
|
||||
(call-with-input-string (getenv "svn locations")
|
||||
read))
|
||||
(download-nar #$output))))))
|
||||
(begin
|
||||
(when (file-exists? #$output)
|
||||
(delete-file-recursively #$output))
|
||||
(download-nar #$output)))))))
|
||||
|
||||
(mlet %store-monad ((guile (package->derivation guile system)))
|
||||
(gexp->derivation (or name "svn-checkout") build
|
||||
|
|
Reference in New Issue