cvs: Allow checkouts when /tmp is a different device.
* guix/build/cvs.scm (cvs-fetch): Use 'copy-recursively' instead of 'rename-file'. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
47268eec13
commit
ab83105bbe
@ -1,5 +1,6 @@
|
||||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@ -58,7 +59,10 @@ Return #t on success, #f otherwise."
|
||||
"-D" "-r")
|
||||
revision
|
||||
module))
|
||||
(rename-file module directory)
|
||||
;; Copy rather than rename in case MODULE and DIRECTORY are on
|
||||
;; different devices.
|
||||
(copy-recursively module directory)
|
||||
|
||||
(with-directory-excursion directory
|
||||
(for-each delete-file-recursively (find-cvs-directories)))
|
||||
#t))
|
||||
|
Loading…
Reference in New Issue
Block a user