From: Mathieu Othacehe <m.othacehe@gmail.com>
To: swedebugia <swedebugia@riseup.net>
Cc: 33867@debbugs.gnu.org
Subject: bug#33867: Folding with origin-uri fails for inherited packages
Date: Tue, 25 Dec 2018 13:01:15 +0100 [thread overview]
Message-ID: <875zvhdddp.fsf@gmail.com> (raw)
In-Reply-To: <213acfca-4a92-4494-4a0c-b8fc100d6f10@riseup.net>
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
next prev parent reply other threads:[~2018-12-25 12:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-25 11:43 bug#33867: Folding with origin-uri fails for inherited packages swedebugia
2018-12-25 12:01 ` Mathieu Othacehe [this message]
2018-12-25 17:29 ` swedebugia
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zvhdddp.fsf@gmail.com \
--to=m.othacehe@gmail.com \
--cc=33867@debbugs.gnu.org \
--cc=swedebugia@riseup.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.