Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Ludovic Courtès
Andreas Enge skribis: > Am Dienstag, 12. Februar 2013 schrieb Mark H Weaver: >> For now, I'm going to assume that "guix-package -i guile" indeed >> *should* choose from among the newest available versions, so I'm going >> to work on fixing that. > > Yes, that was exactly my point with libjpeg - w

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Ludovic Courtès
Mark H Weaver skribis: > From bd192057c770ca3653828498591dbe4683b51545 Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Tue, 12 Feb 2013 12:02:15 -0500 > Subject: [PATCH 1/2] Add version-compare and version>? to utils.scm. > > * guix/utils.scm (version-compare, version>?): New exported pro

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Andreas Enge
Am Dienstag, 12. Februar 2013 schrieb Mark H Weaver: > For now, I'm going to assume that "guix-package -i guile" indeed > *should* choose from among the newest available versions, so I'm going > to work on fixing that. Yes, that was exactly my point with libjpeg - we would like 9 to be installed

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Mark H Weaver
I wrote: > Would "guix-package -i guile" ever choose guile-1.8.8 over guile-2.0.7 > if the latter was available? Does it not automatically choose the > newest available version? Having now looked at the code, I see that it does not. My latest upgrade implemention assumed that it did, so I'll hav

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> Okay. I was relying on the fact that attempts to install a derivation >> that's already installed will ultimately be ignored, and my (admittedly >> simple) tests seem to suggest that it works properly, but perhaps this >> appro

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Ludovic Courtès
Mark H Weaver skribis: >> Mark H Weaver skribis: >>> + (upgrade (if (null? upgrade-regexps) >>> + '() >>> + (filter-map (match-lambda >>> + ((name _ _ _ _) >>> +

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: >> + (upgrade (if (null? upgrade-regexps) >> + '() >> + (filter-map (match-lambda >> + ((name _ _ _ _) >> +

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Ludovic Courtès
Andreas Enge skribis: > Am Dienstag, 12. Februar 2013 schrieb Ludovic Courtès: >> It’s actually slightly more complex: you need to select those packages >> that are installed and for which either a newer version is available >> (per ‘version-string>?’, see gnu-maintenance.scm; should be moved to

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Andreas Enge
Am Dienstag, 12. Februar 2013 schrieb Ludovic Courtès: > It’s actually slightly more complex: you need to select those packages > that are installed and for which either a newer version is available > (per ‘version-string>?’, see gnu-maintenance.scm; should be moved to > utils.scm) This reminds me

Re: [PATCH] Implement guix-package --upgrade

2013-02-12 Thread Ludovic Courtès
Hi Mark! Mark H Weaver skribis: > Here's an implementation of the -u/--upgrade option for guix-package. Nice! > + (upgrade (if (null? upgrade-regexps) > + '() > + (filter-map (match-lambda > +

[PATCH] Implement guix-package --upgrade

2013-02-11 Thread Mark H Weaver
. Comments and suggestions solicited. Mark >From 3436dd9460e1b7b85584a96df3bb57b022629651 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Tue, 12 Feb 2013 01:24:21 -0500 Subject: [PATCH] Implement guix-package --upgrade. * guix-package.in (%options): Add -u/--upgrade option.