[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: website: Show the file name of origin patches.
From: |
Ludovic Courtès |
Subject: |
02/06: website: Show the file name of origin patches. |
Date: |
Thu, 7 Dec 2017 05:16:53 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix-artwork.
commit 7c2eed928c6b0ec4a5f319c355437ff9d53a07cf
Author: Ludovic Courtès <address@hidden>
Date: Thu Dec 7 10:26:48 2017 +0100
website: Show the file name of origin patches.
Fixes <https://bugs.gnu.org/29596>.
Reported by Mark H Weaver <address@hidden>.
* website/apps/packages/utils.scm (package-patches)[patch-name]: Honor
'origin-file-name' when it's true.
---
website/apps/packages/utils.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/website/apps/packages/utils.scm b/website/apps/packages/utils.scm
index a5fe83c..8f1d5d4 100644
--- a/website/apps/packages/utils.scm
+++ b/website/apps/packages/utils.scm
@@ -188,9 +188,13 @@ vocabulary."
((? string? patch)
(basename patch))
((? origin? patch)
- (match (origin-uri patch)
- ((? string? uri) (basename uri))
- ((head . tail) (basename head))))))
+ (match (origin-file-name patch)
+ (#f
+ (match (origin-uri patch)
+ ((? string? uri) (basename uri))
+ ((head . tail) (basename head))))
+ (file
+ file)))))
(define (snippet-link)
(let* ((loc (or (package-field-location package 'source)
- branch master updated (ca9c8dc -> a38903c), Ludovic Courtès, 2017/12/07
- 01/06: website: Fix reference to GNU manuals., Ludovic Courtès, 2017/12/07
- 04/06: website: Adjust tags for "Announcing Guix-HPC"., Ludovic Courtès, 2017/12/07
- 06/06: website: Adjust for 0.14.0., Ludovic Courtès, 2017/12/07
- 02/06: website: Show the file name of origin patches.,
Ludovic Courtès <=
- 05/06: website: Add aarch64 Guix binary downloads., Ludovic Courtès, 2017/12/07
- 03/06: Revert "website: Hard-code file:// URL root when GUIX_WEB_SITE_LOCAL.", Ludovic Courtès, 2017/12/07