unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: 33867@debbugs.gnu.org
Subject: bug#33867: Folding with origin-uri fails for inherited packages
Date: Tue, 25 Dec 2018 12:43:38 +0100	[thread overview]
Message-ID: <213acfca-4a92-4494-4a0c-b8fc100d6f10@riseup.net> (raw)

Is this a bug?

scheme@(guix-user) [1]> (define snakes
                        (fold-packages
                             (lambda (package lst)
                                 (if (string-prefix? "python"
                                       (package-name package))
                                        (cons (origin-uri package) lst)
                              lst))
                         '()))
... ... ... ... ... ... ... <unnamed port>:15:45: In procedure 
origin-uri: Wrong type argument: #<package python2-defusedxml@0.5.0 
gnu/packages/xml.scm:1235 2220300>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [2]> ,bt
In current input:
     11:23  5 (_)
In guix/discovery.scm:
     155:3  4 (fold-module-public-variables _ _ _)
In guix/combinators.scm:
     45:26  3 (fold2 #<procedure 1138b20 at guix/discovery.scm:155:10 
(mod…> …)
     45:26  2 (fold2 #<procedure 1144620 at guix/discovery.scm:156:19 
(var…> …)
In guix/discovery.scm:
    158:33  1 (_ #<package python2-defusedxml@0.5.0 
gnu/packages/xml.scm:1…> …)
In current input:
     15:45  0 (_ _ _)


-- 
Cheers Swedebugia

             reply	other threads:[~2018-12-25 11:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-25 11:43 swedebugia [this message]
2018-12-25 12:01 ` bug#33867: Folding with origin-uri fails for inherited packages Mathieu Othacehe
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

  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=213acfca-4a92-4494-4a0c-b8fc100d6f10@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=33867@debbugs.gnu.org \
    /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).