diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-03-22 21:58:56 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-04-03 16:26:51 +0800 |
| commit | f27b9ee891e768ffb56ec4e5ffb5d49c636947bc (patch) | |
| tree | 867ed97647d5b079a7778bb4d530e31fe9f6b752 | |
| parent | 27265c7a02199aba5034bd76d83c0852d1d96654 (diff) | |
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
| -rw-r--r-- | gnu/packages.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm index ee99dea2cab..d859feadf62 100644 --- a/gnu/packages.scm +++ b/gnu/packages.scm @@ -518,8 +518,9 @@ return its return value." (location->string (package-location pkg)))) (match (package-superseded pkg) ((? package? new) - (info (G_ "package '~a' has been superseded by '~a'~%") - (package-name pkg) (package-name 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))) new) (#f pkg))) |
