mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
Revert "packages: Optimize 'package-transitive-supported-systems'."
This reverts commit 24420f5ffa
.
This broke 'package-transitive-supported-systems', which would return
the union of supported systems instead of the intersection.
This commit is contained in:
parent
f3f1d0a557
commit
86eee976f5
1 changed files with 9 additions and 10 deletions
|
@ -766,16 +766,15 @@ (define package-transitive-supported-systems
|
|||
(mlambdaq (package)
|
||||
"Return the intersection of the systems supported by PACKAGE and those
|
||||
supported by its dependencies."
|
||||
(set->list
|
||||
(fold (lambda (input systems)
|
||||
(match input
|
||||
((label (? package? p) . _)
|
||||
(fold set-insert systems
|
||||
(package-transitive-supported-systems p)))
|
||||
(_
|
||||
systems)))
|
||||
(list->set (package-supported-systems package))
|
||||
(bag-direct-inputs (package->bag package))))))
|
||||
(fold (lambda (input systems)
|
||||
(match input
|
||||
((label (? package? p) . _)
|
||||
(lset-intersection
|
||||
string=? systems (package-transitive-supported-systems p)))
|
||||
(_
|
||||
systems)))
|
||||
(package-supported-systems package)
|
||||
(bag-direct-inputs (package->bag package)))))
|
||||
|
||||
(define* (supported-package? package #:optional (system (%current-system)))
|
||||
"Return true if PACKAGE is supported on SYSTEM--i.e., if PACKAGE and all its
|
||||
|
|
Loading…
Reference in a new issue