GNU bug report logs - #33867
Folding with origin-uri fails for inherited packages

Previous Next

Package: guix;

Reported by: swedebugia <swedebugia <at> riseup.net>

Date: Tue, 25 Dec 2018 11:38:01 UTC

Severity: normal

Done: swedebugia <swedebugia <at> riseup.net>

Bug is archived. No further changes may be made.

Full log


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

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: swedebugia <swedebugia <at> riseup.net>
Cc: 33867 <at> debbugs.gnu.org
Subject: Re: bug#33867: Folding with origin-uri fails for inherited packages
Date: Tue, 25 Dec 2018 13:01:15 +0100
Hi,

> Is this a bug?

No it's not, the following snippet should work better.

--8<---------------cut here---------------start------------->8---
(fold-packages
 (lambda (package lst)
   (if (string-prefix? "python" (package-name package))
       (cons (and=> (package-source package)
                    (lambda (source)
                      (origin-uri source)))
             lst)
     lst))
 '())
--8<---------------cut here---------------end--------------->8---

Mathieu




This bug report was last modified 6 years and 151 days ago.

Previous Next


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