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 /gnu/packages.scm | |
| 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
Diffstat (limited to 'gnu/packages.scm')
| -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." | |||
| 518 | (location->string (package-location pkg)))) | 518 | (location->string (package-location pkg)))) |
| 519 | (match (package-superseded pkg) | 519 | (match (package-superseded pkg) |
| 520 | ((? package? new) | 520 | ((? package? new) |
| 521 | (info (G_ "package '~a' has been superseded by '~a'~%") | 521 | (unless (assoc-ref (package-properties pkg) 'supress-supersession-info?) |
| 522 | (package-name pkg) (package-name new)) | 522 | (info (G_ "package '~a' has been superseded by '~a'~%") |
| 523 | (package-name pkg) (package-name new))) | ||
| 523 | new) | 524 | new) |
| 524 | (#f | 525 | (#f |
| 525 | pkg))) | 526 | pkg))) |
