mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
gnu: %find-package: Allow supressing supersession info.
The use case is to implement package aliasing on top of the existing superseding mechanism. * gnu/packages.scm (%find-package): Supress supersession info when package has ‘supress-supersession-info’ property. Change-Id: Ia1077118dad0133f91575a5a70238618f2475300 Merges: #7407
This commit is contained in:
@@ -518,8 +518,9 @@ return its return value."
|
||||
(location->string (package-location pkg))))
|
||||
(match (package-superseded pkg)
|
||||
((? package? new)
|
||||
(unless (assoc-ref (package-properties pkg) 'supress-supersession-info?)
|
||||
(info (G_ "package '~a' has been superseded by '~a'~%")
|
||||
(package-name pkg) (package-name new))
|
||||
(package-name pkg) (package-name new)))
|
||||
new)
|
||||
(#f
|
||||
pkg)))
|
||||
|
||||
Reference in New Issue
Block a user