[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A pleasant low-hanging fruit
From: |
Cyril Roelandt |
Subject: |
Re: A pleasant low-hanging fruit |
Date: |
Sun, 10 Mar 2013 18:06:33 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 03/05/2013 08:47 PM, Ludovic Courtès wrote:
Hi!
I just had a brain wave and couldn’t resist: commit ef010c0 changes
‘guix package --install’ such that, when installing a GNU package, it
automatically reports the availability of a new upstream version.
So, for instance, if you run it today:
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix package -i idutils -n
[nothing special here]
$ ./pre-inst-env guix package -i gettext -n
gnu/packages/gettext.scm:27:3: note: using gettext-0.18.1.1 but
gettext-0.18.2.1 is available upstream
--8<---------------cut here---------------end--------------->8---
This works well with GNU packages, but breaks other packages:
$ ./pre-inst-env ./scripts/guix package -i w3m
Backtrace:
In ice-9/boot-9.scm:
149: 13 [catch #t #<catch-closure 98682c0> ...]
157: 12 [#<procedure 98318c0 ()>]
In unknown file:
?: 11 [catch-closure]
In ice-9/boot-9.scm:
63: 10 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
407: 9 [eval # #]
In ice-9/boot-9.scm:
2111: 8 [save-module-excursion #<procedure 981e080 at
ice-9/boot-9.scm:3646:3 ()>]
3653: 7 [#<procedure 981e080 at ice-9/boot-9.scm:3646:3 ()>]
In unknown file:
?: 6 [load-compiled/vm
"/home/cyril/.cache/guile/ccache/2.0-LE-4-2.0/home/cyril/guix/scripts/guix.go"]
In ice-9/boot-9.scm:
149: 5 [catch srfi-34 #<procedure 9c39f10 at guix/ui.scm:104:2 ()> ...]
157: 4 [#<procedure 9c101e0 ()>]
In guix/scripts/package.scm:
722: 3 [#<procedure 9c24660 at guix/scripts/package.scm:715:8 ()>]
560: 2 [process-actions (# #)]
In srfi/srfi-1.scm:
664: 1 [filter-map #<procedure 9c34270 at
guix/scripts/package.scm:588:37 (expr)> ...]
In guix/scripts/package.scm:
592: 0 [#<procedure 9c34270 at guix/scripts/package.scm:588:37 (expr)> #]
guix/scripts/package.scm:592:39: In procedure #<procedure 9c34270 at
guix/scripts/package.scm:588:37 (expr)>:
guix/scripts/package.scm:592:39: In procedure string-split: Wrong type
argument in position 1 (expecting string): #f
Cyril.