aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages.scm')
-rw-r--r--gnu/packages.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm
index 68a9eef2ad..f55c294a18 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -305,8 +305,15 @@ return its return value."
(when fallback?
(warning (_ "deprecated NAME-VERSION syntax; \
use NAME@VERSION instead~%")))
- pkg)
- (_
+
+ (match (package-superseded pkg)
+ ((? package? new)
+ (info (_ "package '~a' has been superseded by '~a'~%")
+ (package-name pkg) (package-name new))
+ new)
+ (#f
+ pkg)))
+ (x
(if version
(leave (_ "~A: package not found for version ~a~%") name version)
(if (not fallback?)