[Top][All Lists]

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

02/02: utils: Preserve symbolic links in 'wrap-program'.

From: Andreas Enge
Subject: 02/02: utils: Preserve symbolic links in 'wrap-program'.
Date: Mon, 16 Feb 2015 14:04:28 +0000

andreas pushed a commit to branch core-updates
in repository guix.

commit da466f7ff63e34aca271e603090f25ba471f009e
Author: Andreas Enge <address@hidden>
Date:   Sun Feb 15 17:40:17 2015 +0100

    utils: Preserve symbolic links in 'wrap-program'.
    * guix/build/utils.scm (wrap-program): Preserve symbolic links instead of
        copying the contents of the link.
    Co-authored-by: Ludovic Court├Ęs <address@hidden>
    Closes <>.
 guix/build/utils.scm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index a3446cb..6de1fa3 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -837,7 +837,7 @@ the previous wrapper."
     (if (zero? number)
         (let ((prog-real (string-append (dirname prog) "/."
                                         (basename prog) "-real")))
-          (copy-file prog prog-real)
+          (rename-file prog prog-real)
         (wrapper-file-name number)))

reply via email to

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