GNU bug report logs - #62202
[PATCH 0/21] Juliahub import script.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Wed, 15 Mar 2023 12:49:01 UTC

Severity: normal

Tags: moreinfo, patch

Full log


Message #151 received at 62202 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: 62202 <at> debbugs.gnu.org
Cc: Nicolas Graves via Guix-patches via <guix-patches <at> gnu.org>,
 Simon Tournier <zimon.toutoune <at> gmail.com>
Subject: [PATCH v2 21/23] DRAFT import: juliahub: Fix undefined homepages.
Date: Mon, 18 Sep 2023 20:03:28 +0200
From: Nicolas Graves via Guix-patches via <guix-patches <at> gnu.org>

Signed-off-by: Simon Tournier <zimon.toutoune <at> gmail.com>
---
 guix/import/juliahub.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/guix/import/juliahub.scm b/guix/import/juliahub.scm
index 94d4ae823334..06574db724fe 100644
--- a/guix/import/juliahub.scm
+++ b/guix/import/juliahub.scm
@@ -303,12 +303,16 @@ (define* (juliahub->guix-package package-name
                   (if subdir
                       (parse-test-dependencies
                        (string-append subdir "/" directory))
-                      (parse-test-dependencies directory))))
+                      (parse-test-dependencies directory)))
+                 (homepage (juliahub-package-homepage package)))
             (values (make-julia-sexp
                      package-name
                      (juliahub-package-version package)
                      source
-                     (juliahub-package-homepage package)
+                     (match homepage
+                       ("" (juliahub-package-url package))
+                       ((? string?) homepage)
+                       (_ (juliahub-package-url package)))
                      (juliahub-package-description package)
                      ((compose beautify-description
                                juliahub-beautify-description)
-- 
2.38.1





This bug report was last modified 1 year and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.