[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/15: upstream: update-package-inputs: Sort extra inputs.
From: |
guix-commits |
Subject: |
02/15: upstream: update-package-inputs: Sort extra inputs. |
Date: |
Mon, 19 Feb 2024 06:45:57 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 00c8a9275c67c08b6fb9058617d3ad7d55fa4fad
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Feb 19 11:44:47 2024 +0100
upstream: update-package-inputs: Sort extra inputs.
Ensure that extra inputs end up in the correct order.
* guix/upstream.scm (update-package-inputs)[filtered-inputs]: Sort new list
of
inputs.
Change-Id: Ia5fddd8103a33c79426995057fcce61c2e9e5a72
---
guix/upstream.scm | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/guix/upstream.scm b/guix/upstream.scm
index e28ae12f3f..180ae21dcf 100644
--- a/guix/upstream.scm
+++ b/guix/upstream.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2010-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
-;;; Copyright © 2019, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019, 2022-2024 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021, 2022 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
@@ -566,17 +566,21 @@ specified in SOURCE, an <upstream-source>."
(properties (package-properties package))
(ignore (or (assoc-ref properties ignore-property) '()))
(extra (or (assoc-ref properties extra-property) '())))
- (append (if (null? ignore)
- inputs
- (remove (lambda (input)
- (member (upstream-input-downstream-name input)
- ignore))
- inputs))
- (map (lambda (name)
- (upstream-input
- (name name)
- (downstream-name name)))
- extra)))))
+ (sort
+ (append (if (null? ignore)
+ inputs
+ (remove (lambda (input)
+ (member (upstream-input-downstream-name input)
+ ignore))
+ inputs))
+ (map (lambda (name)
+ (upstream-input
+ (name name)
+ (downstream-name name)))
+ extra))
+ (lambda (a b)
+ (string-ci<? (upstream-input-downstream-name a)
+ (upstream-input-downstream-name b)))))))
(define regular-inputs
(filtered-inputs upstream-source-regular-inputs
- branch master updated (052ef14521 -> 90e8febd29), guix-commits, 2024/02/19
- 02/15: upstream: update-package-inputs: Sort extra inputs.,
guix-commits <=
- 03/15: gnu: r-pscbs: Update to 0.67.0., guix-commits, 2024/02/19
- 01/15: machine/ssh: Refresh parameterization of %CURRENT-SYSTEM., guix-commits, 2024/02/19
- 04/15: gnu: r-r-rsp: Update to 0.46.0., guix-commits, 2024/02/19
- 07/15: gnu: r-collapse: Update to 2.0.10., guix-commits, 2024/02/19
- 08/15: gnu: r-recipes: Update to 1.0.10., guix-commits, 2024/02/19
- 09/15: gnu: r-sm: Update to 2.2-6.0., guix-commits, 2024/02/19
- 11/15: gnu: r-magick: Update to 2.8.3., guix-commits, 2024/02/19
- 13/15: gnu: r-setrng: Update to 2024.2-1., guix-commits, 2024/02/19
- 05/15: gnu: r-callr: Update to 3.7.4., guix-commits, 2024/02/19
- 06/15: gnu: r-igraph: Update to 2.0.2., guix-commits, 2024/02/19