guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: ci: Truncate git commit in ISO label.


From: guix-commits
Subject: branch master updated: gnu: ci: Truncate git commit in ISO label.
Date: Thu, 03 Sep 2020 08:10:31 -0400

This is an automated email from the git hooks/post-receive script.

roptat pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 7596ae1  gnu: ci: Truncate git commit in ISO label.
7596ae1 is described below

commit 7596ae1034a6878ecbe9e65a642a1434a78b1cf0
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Thu Sep 3 13:35:47 2020 +0200

    gnu: ci: Truncate git commit in ISO label.
    
    * gnu/ci.scm (image-jobs): Keep only 7 characters from git commit in ISO
    label.
---
 gnu/ci.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/ci.scm b/gnu/ci.scm
index 7181dae..630c4a9 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -237,7 +237,10 @@ system.")
                  (image
                   (inherit (image-with-label
                              iso9660-image
-                             (string-append "GUIX_" system "_" %guix-version)))
+                             (string-append "GUIX_" system "_"
+                                            (if (> (string-length 
%guix-version) 7)
+                                                (substring %guix-version 0 7)
+                                                %guix-version))))
                   (operating-system installation-os))))
         ;; Only cross-compile Guix System images from x86_64-linux for now.
         ,@(if (string=? system "x86_64-linux")



reply via email to

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