guix-commits
[Top][All Lists]
Advanced

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

88/201: guix: packages: Fix repacking of plain tarballs.


From: guix-commits
Subject: 88/201: guix: packages: Fix repacking of plain tarballs.
Date: Mon, 1 Nov 2021 23:18:44 -0400 (EDT)

apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.

commit d9b57279bc98d6525483b567b7df9f53fab9f893
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Aug 30 17:32:21 2021 -0400

    guix: packages: Fix repacking of plain tarballs.
    
    Fixes <https://issues.guix.gnu.org/50066>.
    
    * guix/packages.scm (patch-and-repack): Test for a tarball using tarball? 
and
    move the plain file copy to the else clause.
    
    Reported-by: Mathieu Othacehe <othacehe@gnu.org>
---
 guix/packages.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/guix/packages.scm b/guix/packages.scm
index fb7eabd..083ee6d 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -981,10 +981,10 @@ specifies modules in scope when evaluating SNIPPET."
                ((file-is-directory? #+source)
                 (copy-recursively directory #$output
                                   #:log (%make-void-port "w")))
-               ((not #+comp)
-                (copy-file file #$output))
-               (else
-                (repack directory #$output)))))))
+               ((or #+comp (tarball? #+source))
+                (repack directory #$output))
+               (else                    ;single uncompressed file
+                (copy-file file #$output)))))))
 
     (let ((name (if (or (checkout? original-file-name)
                         (not (compressor original-file-name)))



reply via email to

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