summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-10-21 13:04:34 +0200
committerLudovic Courtès <ludo@gnu.org>2015-10-21 14:44:41 +0200
commitbcb571cba499c29556d36f17554253d285d4d578 (patch)
tree9f4fca0c2c86333fdcce07680aa465ce3a4d52aa /doc
parenta7aac936253b7def133b935a434e692b00eccab5 (diff)
refresh: Add '--type' option.
* guix/scripts/refresh.scm (%options, show-help): Add --type. (lookup-updater): New procedure. (update-package): Add 'updaters' parameter and honor it. (guix-refresh)[options->updaters]: New procedure. Use it, and honor --type.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi28
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 3222a64085b..6f26568a7a5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4211,8 +4211,12 @@ gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0
4211@end example 4211@end example
4212 4212
4213It does so by browsing each package's FTP directory and determining the 4213It does so by browsing each package's FTP directory and determining the
4214highest version number of the source tarballs 4214highest version number of the source tarballs therein. The command
4215therein@footnote{Currently, this only works for GNU packages.}. 4215knows how to update specific types of packages: GNU packages, ELPA
4216packages, etc.---see the documentation for @option{--type} below. The
4217are many packages, though, for which it lacks a method to determine
4218whether a new upstream release is available. However, the mechanism is
4219extensible, so feel free to get in touch with us to add a new method!
4216 4220
4217When passed @code{--update}, it modifies distribution source files to 4221When passed @code{--update}, it modifies distribution source files to
4218update the version numbers and source tarball hashes of those packages' 4222update the version numbers and source tarball hashes of those packages'
@@ -4257,6 +4261,26 @@ The @code{non-core} subset refers to the remaining packages. It is
4257typically useful in cases where an update of the core packages would be 4261typically useful in cases where an update of the core packages would be
4258inconvenient. 4262inconvenient.
4259 4263
4264@item --type=@var{updater}
4265@itemx -t @var{updater}
4266Select only packages handled by @var{updater}. Currently, @var{updater}
4267may be one of:
4268
4269@table @code
4270@item gnu
4271the updater for GNU packages;
4272@item elpa
4273the updater for @uref{http://elpa.gnu.org/, ELPA} packages.
4274@end table
4275
4276For instance, the following commands only checks for updates of Emacs
4277packages hosted at @code{elpa.gnu.org}:
4278
4279@example
4280$ guix refresh -t elpa
4281gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9
4282@end example
4283
4260@end table 4284@end table
4261 4285
4262In addition, @command{guix refresh} can be passed one or more package 4286In addition, @command{guix refresh} can be passed one or more package