diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-12-18 22:33:28 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-03-29 22:15:30 +0200 |
| commit | 3b90fc5b3cc128c1aaaaccc5ea4100c51522abf4 (patch) | |
| tree | defb2d8e12afd5ca43156f115194ad649a747c75 /nix | |
| parent | 785f4c6ed9b3e7a8ff31fe7a719848b7b14ad5dc (diff) | |
refresh: Make --list-updaters fast if web.cvs.savannah.gnu.org is broken.
--list-updaters loops through all packages and all updaters to see whether they
match. The gnu-ftp updater used to use official-gnu-packages to fetch a list of
packages from web.cvs.savannah.gnu.org. official-gnu-packages only caches the
result if it succeeds; but does not cache upon a timout or 5xx status.
official-gnu-packages times out after a minute and is called for all 30k+
packages. refresh --list-updaters could therefore take 30000 minutes. Now
--list-updaters uses official-gnu-packages* (from lint.scm) that memoizes the
result also on failure, thereby limiting the time to 1 minute.
* guix/gnu-maintenance.scm: Add official-gnu-packages* from guix/lint.scm.
Call official-gnu-packages* from gnu-package?
* guix/lint.scm: Move official-gnu-packages* to guix/gnu-maintenance.scm
Change-Id: I5e2e094bfb1042b03db47e119ced0e94b49b417c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4949
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions
