guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/07: cvs: Allow checkouts when /tmp is a different device.


From: Ludovic Courtès
Subject: 03/07: cvs: Allow checkouts when /tmp is a different device.
Date: Thu, 31 Mar 2016 22:05:49 +0000

civodul pushed a commit to branch master
in repository guix.

commit ab83105bbe93cdaf10c4bdb4655428a2df8c7e24
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Sat Mar 26 13:40:38 2016 +0100

    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 <address@hidden>
---
 guix/build/cvs.scm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/guix/build/cvs.scm b/guix/build/cvs.scm
index bd5c50a..033b626 100644
--- a/guix/build/cvs.scm
+++ b/guix/build/cvs.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
 ;;;
 ;;; 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]