From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: bug-guix@gnu.org
Subject: Re: [PATCH] Build newest versions unless specified, and upgrades.
Date: Wed, 13 Feb 2013 22:04:50 +0100 [thread overview]
Message-ID: <87y5eskjrh.fsf@gnu.org> (raw)
In-Reply-To: <87zjz8h260.fsf@tines.lan> (Mark H. Weaver's message of "Wed, 13 Feb 2013 06:40:55 -0500")
Mark H Weaver <mhw@netris.org> skribis:
> I wrote:
>> Here's a preliminary patch that does two things:
>>
>> * Changes 'guix-build' and 'guix-package --install' so that only the
>> newest packages will be considered (unless a version number is
>> specified).
>>
>> * Implements 'guix-package --upgrade'.
>>
>> Although I'm not aware of any functional problems with this code, I'm
>> not entirely pleased with its organization. Nonetheless, I wanted to
>> make it available for early testing and comments.
>>
>> I welcome suggestions on how to improve this code.
>
> Sorry, that patch had a problem in guix-build. Here's a fixed version.
I haven’t actually tested, but it looks good to me!
I could have left ‘guix-build’ as is, because hackers should really use
-e when they want something specific, but I’m fine either way.
Could you update the doc, under “Invoking guix-package”, stating what
happens when giving a package name without a version number?
Minor remarks:
> +(define (find-newest-available-packages)
> + "Return a vhash with elements of the form
> + (name newest-version newest-package ...)
> +where the preferred package is listed first."
What about something like this:
Return a vhash keyed by package names, and with associated values of
the form
(newest-version newest-package)
> + (define (upgradeable? name current-version current-path)
> + ;; Return #t if there is a newer version available, or if the
> + ;; newest version if the same as the current one but the
> + ;; output path would be different than the current path.
Try to mention the variables here, like:
Return #t if there’s a version of package NAME newer than
CURRENT-VERSION ...
Other than that, please push!
Thanks,
Ludo’.
next prev parent reply other threads:[~2013-02-13 21:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 6:33 [PATCH] Implement guix-package --upgrade Mark H Weaver
2013-02-12 9:50 ` Ludovic Courtès
2013-02-12 10:04 ` Andreas Enge
2013-02-12 10:08 ` Ludovic Courtès
2013-02-12 14:27 ` Mark H Weaver
2013-02-12 15:16 ` Ludovic Courtès
2013-02-12 19:29 ` Mark H Weaver
2013-02-12 19:55 ` Mark H Weaver
2013-02-12 21:04 ` Andreas Enge
2013-02-12 21:42 ` Ludovic Courtès
2013-02-13 10:56 ` [PATCH] Build newest versions unless specified, and upgrades Mark H Weaver
2013-02-13 11:40 ` Mark H Weaver
2013-02-13 21:04 ` Ludovic Courtès [this message]
2013-02-14 4:57 ` Mark H Weaver
2013-02-12 21:41 ` [PATCH] Implement guix-package --upgrade Ludovic Courtès
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=87y5eskjrh.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guix@gnu.org \
--cc=mhw@netris.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 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.