[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/19: packages: 'package-direct-sources' correctly handles non-origin s
From: |
guix-commits |
Subject: |
14/19: packages: 'package-direct-sources' correctly handles non-origin sources. |
Date: |
Fri, 21 Apr 2023 11:16:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1df54ceab38873dfc0fd2ec27313d7d17c79c350
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Apr 21 16:27:07 2023 +0200
packages: 'package-direct-sources' correctly handles non-origin sources.
Previously 'package-direct-sources' would trigger a wrong-type-arg error
when passed a package whose 'source' is not an origin, such as
'ruby-sorbet-runtime'.
* guix/packages.scm (package-direct-sources): Call 'expand' if and only
if (package-source package) is an origin.
---
guix/packages.scm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/guix/packages.scm b/guix/packages.scm
index bce82ab3a3..e26602d589 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -1234,11 +1234,14 @@ input list."
"Return all source origins associated with PACKAGE; including origins in
PACKAGE's inputs and patches."
(define (expand source)
- (cons
- source
- (filter origin? (origin-patches source))))
+ (cons source
+ (filter origin? (origin-patches source))))
- `(,@(or (and=> (package-source package) expand) '())
+ `(,@(match (package-source package)
+ ((? origin? origin)
+ (expand origin))
+ (_
+ '()))
,@(filter-map (match-lambda
((_ (? origin? orig) _ ...)
orig)
- branch master updated (0830059b9c -> 13ebf5e36c), guix-commits, 2023/04/21
- 01/19: services: postgresql: Add the 'postgresql' Shepherd service name., guix-commits, 2023/04/21
- 10/19: tests: Use the client 'start-service' procedure., guix-commits, 2023/04/21
- 06/19: services: knot: Add 'configuration' action., guix-commits, 2023/04/21
- 07/19: services: postgresql: Add default package., guix-commits, 2023/04/21
- 09/19: services: herd: 'load-services/safe' is synonymous with 'load-services'., guix-commits, 2023/04/21
- 11/19: tests: Fork and exec a new Guile for the marionette REPL., guix-commits, 2023/04/21
- 14/19: packages: 'package-direct-sources' correctly handles non-origin sources.,
guix-commits <=
- 15/19: gnu: kicad: Update to 7.0.2., guix-commits, 2023/04/21
- 16/19: gnu: Add emacs-gerbil-mode., guix-commits, 2023/04/21
- 02/19: services: postgresql: Add 'configuration' action., guix-commits, 2023/04/21
- 03/19: services: mysql: Add 'configuration' action., guix-commits, 2023/04/21
- 04/19: services: redis: Add 'configuration' action., guix-commits, 2023/04/21
- 08/19: services: nscd: Depend on syslogd., guix-commits, 2023/04/21
- 12/19: tests: Fix checks for expected failures., guix-commits, 2023/04/21
- 17/19: gnu: guile-dsv: Update to 0.5.2., guix-commits, 2023/04/21
- 18/19: home: services: openssh: Add configuration option for jump proxies, guix-commits, 2023/04/21
- 05/19: services: rsync: Add 'configuration' action., guix-commits, 2023/04/21