summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-03-03 09:02:01 +0100
committerLudovic Courtès <ludo@gnu.org>2016-03-03 09:02:01 +0100
commitc7bbc05916b5b2cc77b31dce06d17cab4579df34 (patch)
treed888e18151009cf475553237a880d5610b276338
parent5c7c3581ca9608ccb72f059de7c45fd5d756dc4a (diff)
downloadguix-artwork-c7bbc05916b5b2cc77b31dce06d17cab4579df34.tar
guix-artwork-c7bbc05916b5b2cc77b31dce06d17cab4579df34.tar.gz
website: packages: Honor package replacements.
* website/www/packages.scm (all-packages): Cons the 'package-replacement' if it exists.
-rw-r--r--website/www/packages.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/website/www/packages.scm b/website/www/packages.scm
index 69b0623..c927a95 100644
--- a/website/www/packages.scm
+++ b/website/www/packages.scm
@@ -1,5 +1,5 @@
;;; GuixSD website --- GNU's advanced distro website
-;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
;;; Copyright © 2013 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
;;; Initially written by Luis Felipe López Acevedo <felipe.lopez@openmailbox.org>
@@ -429,7 +429,11 @@ PACKAGES."
(define (all-packages)
"Return the list of all package objects, sorted by name."
- (sort (fold-packages cons '())
+ (sort (fold-packages (lambda (package lst)
+ (cons (or (package-replacement package)
+ package)
+ lst))
+ '())
(lambda (p1 p2)
(string<? (package-name p1)
(package-name p2)))))