Build newest versions unless specified, and implement upgrades.
authorMark H Weaver <mhw@netris.org>
Tue, 12 Feb 2013 06:24:21 +0000 (01:24 -0500)
committerMark H Weaver <mhw@netris.org>
Thu, 14 Feb 2013 03:05:19 +0000 (22:05 -0500)
commitdc5669cd654019994fa59ab26db59c292332ae55
treec288dbbba737db6b71ca42da37b700b28caa6fac
parentc2868b1e0c4155fbeffac9860d69a1ed6041156a
Build newest versions unless specified, and implement upgrades.

* gnu/packages.scm (find-newest-available-packages):
  New exported procedure.

* guix-build.in (newest-available-packages, find-best-packages-by-name):
  New procedures.
  (find-package): Use find-best-packages-by-name, to guarantee that
  if a version number is not specified, only the newest versions will
  be considered.

* guix-package.in (%options): Add --upgrade/-u option.
  (newest-available-packages, find-best-packages-by-name, upgradeable?):
  New procedures.
  (find-package): Use find-best-packages-by-name, to guarantee that
  if a version number is not specified, only the newest versions will
  be considered.
  (process-actions): Implement upgrade option.

* doc/guix.texi (Invoking guix-package): In the description of --install,
  mention that if no version number is specified, the newest available
  version will be selected.
doc/guix.texi
gnu/packages.scm
guix-build.in
guix-package.in