GNU bug report logs -
#33867
Folding with origin-uri fails for inherited packages
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33867 in the body.
You can then email your comments to 33867 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#33867
; Package
guix
.
(Tue, 25 Dec 2018 11:38:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
swedebugia <swedebugia <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Tue, 25 Dec 2018 11:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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 <at> 0.5.0
gnu/packages/xml.scm:1…> …)
In current input:
15:45 0 (_ _ _)
--
Cheers Swedebugia
Information forwarded
to
bug-guix <at> gnu.org
:
bug#33867
; Package
guix
.
(Tue, 25 Dec 2018 12:02:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 33867 <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
swedebugia <swedebugia <at> riseup.net>
:
You have taken responsibility.
(Tue, 25 Dec 2018 17:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
swedebugia <swedebugia <at> riseup.net>
:
bug acknowledged by developer.
(Tue, 25 Dec 2018 17:23:03 GMT)
Full text and
rfc822 format available.
Message #13 received at 33867-done <at> debbugs.gnu.org (full text, mbox):
On 2018-12-25 13:01, Mathieu Othacehe wrote:
> (fold-packages
> (lambda (package lst)
> (if (string-prefix? "python" (package-name package))
> (cons (and=> (package-source package)
> (lambda (source)
> (origin-uri source)))
> lst)
> lst))
> '())
thanks!
closing
--
Cheers Swedebugia
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 23 Jan 2019 12:24:05 GMT)
Full text and
rfc822 format available.
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.