unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Saku Laesvuori via Guix-patches via <guix-patches@gnu.org>
To: 67564@debbugs.gnu.org
Cc: Saku Laesvuori <saku@laesvuori.fi>, Lars-Dominik Braun <lars@6xq.net>
Subject: [bug#67564] [PATCH v2 2/3] guix: import: stackage: Fix crash on recursive import
Date: Sat,  2 Dec 2023 19:23:05 +0200	[thread overview]
Message-ID: <feedeefc26f2e5d3139b66071e83ecf513d22a4e.1701537651.git.saku@laesvuori.fi> (raw)
In-Reply-To: <1e1cc11c9361ab747435c2159355d14f6046d41d.1701537651.git.saku@laesvuori.fi>

* guix/import/stackage.scm (lts-package-version): Call
  stackage-package-version only when the package is found.

Change-Id: Ic8d7c1b7a42a9c1a6cbba567e148706507a53ee3
---
 guix/import/stackage.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm
index 00814c7d46..f801835b33 100644
--- a/guix/import/stackage.scm
+++ b/guix/import/stackage.scm
@@ -92,7 +92,7 @@ (define (lts-package-version packages name)
   "Return the version of the package with upstream NAME included in PACKAGES."
   (let ((pkg (find (lambda (pkg) (string=? (stackage-package-name pkg) name))
                    packages)))
-    (stackage-package-version pkg)))
+    (and=> pkg stackage-package-version)))
 
 \f
 ;;;
-- 
2.41.0





  reply	other threads:[~2023-12-02 17:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-01  9:24 [bug#67564] [PATCH 0/3] Fixes for haskell importers Saku Laesvuori via Guix-patches via
2023-12-01  9:29 ` [bug#67564] [PATCH 1/3] guix: import: hackage: Fix crash on recursive import Saku Laesvuori via Guix-patches via
2023-12-01  9:29   ` [bug#67564] [PATCH 2/3] guix: import: stackage: " Saku Laesvuori via Guix-patches via
2023-12-01  9:29   ` [bug#67564] [PATCH 3/3] guix: import: Parse cabal layout blocks correctly Saku Laesvuori via Guix-patches via
2023-12-01 15:06 ` [bug#67564] [PATCH 0/3] Fixes for haskell importers Lars-Dominik Braun
2023-12-02 17:27   ` Saku Laesvuori via Guix-patches via
2023-12-03  8:13     ` bug#67564: " Lars-Dominik Braun
2023-12-02 17:23 ` [bug#67564] [PATCH v2 1/3] guix: import: hackage: Fix crash on recursive import Saku Laesvuori via Guix-patches via
2023-12-02 17:23   ` Saku Laesvuori via Guix-patches via [this message]
2023-12-02 17:23   ` [bug#67564] [PATCH v2 3/3] guix: import: Parse cabal layout blocks correctly Saku Laesvuori via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=feedeefc26f2e5d3139b66071e83ecf513d22a4e.1701537651.git.saku@laesvuori.fi \
    --to=guix-patches@gnu.org \
    --cc=67564@debbugs.gnu.org \
    --cc=lars@6xq.net \
    --cc=saku@laesvuori.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).