diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-10-21 13:04:34 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-10-21 14:44:41 +0200 |
| commit | bcb571cba499c29556d36f17554253d285d4d578 (patch) | |
| tree | 9f4fca0c2c86333fdcce07680aa465ce3a4d52aa /doc | |
| parent | a7aac936253b7def133b935a434e692b00eccab5 (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.texi | 28 |
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 | ||
| 4213 | It does so by browsing each package's FTP directory and determining the | 4213 | It does so by browsing each package's FTP directory and determining the |
| 4214 | highest version number of the source tarballs | 4214 | highest version number of the source tarballs therein. The command |
| 4215 | therein@footnote{Currently, this only works for GNU packages.}. | 4215 | knows how to update specific types of packages: GNU packages, ELPA |
| 4216 | packages, etc.---see the documentation for @option{--type} below. The | ||
| 4217 | are many packages, though, for which it lacks a method to determine | ||
| 4218 | whether a new upstream release is available. However, the mechanism is | ||
| 4219 | extensible, so feel free to get in touch with us to add a new method! | ||
| 4216 | 4220 | ||
| 4217 | When passed @code{--update}, it modifies distribution source files to | 4221 | When passed @code{--update}, it modifies distribution source files to |
| 4218 | update the version numbers and source tarball hashes of those packages' | 4222 | update 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 | |||
| 4257 | typically useful in cases where an update of the core packages would be | 4261 | typically useful in cases where an update of the core packages would be |
| 4258 | inconvenient. | 4262 | inconvenient. |
| 4259 | 4263 | ||
| 4264 | @item --type=@var{updater} | ||
| 4265 | @itemx -t @var{updater} | ||
| 4266 | Select only packages handled by @var{updater}. Currently, @var{updater} | ||
| 4267 | may be one of: | ||
| 4268 | |||
| 4269 | @table @code | ||
| 4270 | @item gnu | ||
| 4271 | the updater for GNU packages; | ||
| 4272 | @item elpa | ||
| 4273 | the updater for @uref{http://elpa.gnu.org/, ELPA} packages. | ||
| 4274 | @end table | ||
| 4275 | |||
| 4276 | For instance, the following commands only checks for updates of Emacs | ||
| 4277 | packages hosted at @code{elpa.gnu.org}: | ||
| 4278 | |||
| 4279 | @example | ||
| 4280 | $ guix refresh -t elpa | ||
| 4281 | gnu/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 | ||
| 4262 | In addition, @command{guix refresh} can be passed one or more package | 4286 | In addition, @command{guix refresh} can be passed one or more package |
