[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: website: packages: Ignore third-party packages.
From: |
Ludovic Courtès |
Subject: |
02/12: website: packages: Ignore third-party packages. |
Date: |
Sun, 30 Jul 2017 16:23:16 -0400 (EDT) |
civodul pushed a commit to branch wip-website-update
in repository guix-artwork.
commit 562f47d407656754df7d1fd7a312f3c5f8ead128
Author: Ludovic Courtès <address@hidden>
Date: Sat Jul 29 16:53:39 2017 +0200
website: packages: Ignore third-party packages.
* website/apps/packages/data.scm (all-packages): Parameterize
%PACKAGE-MODULE-PATH.
---
website/apps/packages/data.scm | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/website/apps/packages/data.scm b/website/apps/packages/data.scm
index d34b0fb..424701a 100644
--- a/website/apps/packages/data.scm
+++ b/website/apps/packages/data.scm
@@ -39,14 +39,18 @@
If GUIX_WEB_SITE_LOCAL=yes, return only 300 packages for
testing the website."
- (let ((packages (sort (fold-packages (lambda (package lst)
- (cons (or (package-replacement package)
- package)
- lst))
- '())
- (lambda (p1 p2)
- (string<? (package-name p1)
- (package-name p2))))))
+ ;; Note: Dismiss packages found in $GUIX_PACKAGE_PATH.
+ (let ((packages
+ (sort (parameterize ((%package-module-path (last-pair
+ (%package-module-path))))
+ (fold-packages (lambda (package lst)
+ (cons (or (package-replacement package)
+ package)
+ lst))
+ '()))
+ (lambda (p1 p2)
+ (string<? (package-name p1)
+ (package-name p2))))))
(cond ((null? packages) '())
((getenv "GUIX_WEB_SITE_LOCAL") (list-head packages 300))
(else packages))))
- branch wip-website-update created (now 967e275), Ludovic Courtès, 2017/07/30
- 05/12: website: utils: 'paginate' correctly handles the case with zero items., Ludovic Courtès, 2017/07/30
- 04/12: website: Rename 'guix.scm' to 'build.scm'., Ludovic Courtès, 2017/07/30
- 03/12: website: posts: Add missing tags and harmonize., Ludovic Courtès, 2017/07/30
- 02/12: website: packages: Ignore third-party packages.,
Ludovic Courtès <=
- 08/12: website: packages: Add the commit in package source URLs., Ludovic Courtès, 2017/07/30
- 07/12: website: packages: Interpret synopsis/description Texinfo., Ludovic Courtès, 2017/07/30
- 11/12: website: Use actual GuixSD screenshots., Ludovic Courtès, 2017/07/30
- 09/12: website: packages: Fix typo., Ludovic Courtès, 2017/07/30
- 10/12: website: packages: Implement patch links., Ludovic Courtès, 2017/07/30
- 06/12: website: packages: Implement grouping by letter., Ludovic Courtès, 2017/07/30
- 12/12: website: "download", not "test"., Ludovic Courtès, 2017/07/30