[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: upstream: Sort '%updaters' alphabetically.
From: |
guix-commits |
Subject: |
01/09: upstream: Sort '%updaters' alphabetically. |
Date: |
Tue, 19 Jul 2022 12:58:07 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e87c6fb95a2898df3eb5b557407a4504977182da
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jul 18 13:16:04 2022 +0200
upstream: Sort '%updaters' alphabetically.
Previously the output of 'guix refresh --list-updaters' would be
non-deterministic, and likewise the order in which updaters are tried
would be non-deterministic.
Reported by zimoun <zimon.toutoune@gmail.com>.
* guix/upstream.scm (%updaters): Add call to 'sort'.
---
guix/upstream.scm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/guix/upstream.scm b/guix/upstream.scm
index 9b49d1641f..cbfd1aa609 100644
--- a/guix/upstream.scm
+++ b/guix/upstream.scm
@@ -251,13 +251,17 @@ correspond to the same version."
#:warn warn-about-load-error)))
(define %updaters
- ;; The list of publically-known updaters.
- (delay (fold-module-public-variables (lambda (obj result)
- (if (upstream-updater? obj)
- (cons obj result)
- result))
- '()
- (importer-modules))))
+ ;; The list of publically-known updaters, alphabetically sorted.
+ (delay
+ (sort (fold-module-public-variables (lambda (obj result)
+ (if (upstream-updater? obj)
+ (cons obj result)
+ result))
+ '()
+ (importer-modules))
+ (lambda (updater1 updater2)
+ (string<? (symbol->string (upstream-updater-name updater1))
+ (symbol->string (upstream-updater-name updater2)))))))
;; Tests need to mock this variable so mark it as "non-declarative".
(set! %updaters %updaters)
- branch master updated (d519305d83 -> dbf0987971), guix-commits, 2022/07/19
- 01/09: upstream: Sort '%updaters' alphabetically.,
guix-commits <=
- 02/09: gnu: commencement: Explicitly provide the source of 'tcc-boot'., guix-commits, 2022/07/19
- 03/09: gnu: tcc: Update to a83b285., guix-commits, 2022/07/19
- 04/09: home: Add -I, --list-installed option., guix-commits, 2022/07/19
- 09/09: gnu: clyrics: Update to 0.13., guix-commits, 2022/07/19
- 05/09: system: Add -I, --list-installed option., guix-commits, 2022/07/19
- 08/09: services: tor: Switch to 'least-authority-wrapper'., guix-commits, 2022/07/19
- 06/09: gnu: k3b: Fix build., guix-commits, 2022/07/19
- 07/09: gnu: k3b: Add inputs bash-minimal and cdrtools., guix-commits, 2022/07/19