* [bug#62254] [PATCH] guix: Shorten URL for home page in texlive importer.
@ 2023-03-18 13:13 Nicolas Goaziou
2023-03-26 14:19 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2023-03-18 13:13 UTC (permalink / raw)
To: 62254
* guix/import/texlive.scm (tlpdb->package): Use short URL for home page.
---
guix/import/texlive.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm
index 82014ee568..e77b2a3f9a 100644
--- a/guix/import/texlive.scm
+++ b/guix/import/texlive.scm
@@ -286,9 +286,10 @@ (define (tlpdb->package name version package-database)
(string->symbol name)))
inputs))))))
'())
- ,@(or (and=> (assoc-ref data 'catalogue-ctan)
- (lambda (url)
- `((home-page ,(string-append "https://ctan.org" url)))))
+ ,@(or (and=> (assoc-ref data 'name)
+ (lambda (name)
+ `((home-page ,(string-append "https://www.ctan.org/pkg/"
+ name)))))
'((home-page "https://www.tug.org/texlive/")))
(synopsis ,(assoc-ref data 'shortdesc))
(description ,(beautify-description
base-commit: 3893758dac76fc30b23d4715e849e262306f268d
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#62254] [PATCH] guix: Shorten URL for home page in texlive importer.
2023-03-18 13:13 [bug#62254] [PATCH] guix: Shorten URL for home page in texlive importer Nicolas Goaziou
@ 2023-03-26 14:19 ` Ludovic Courtès
2023-03-30 16:22 ` bug#62254: " Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-03-26 14:19 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 62254
Hi,
Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:
> * guix/import/texlive.scm (tlpdb->package): Use short URL for home page.
[...]
> + ,@(or (and=> (assoc-ref data 'name)
> + (lambda (name)
> + `((home-page ,(string-append "https://www.ctan.org/pkg/"
> + name)))))
Are there cases where ‘data’ might be missing ‘name’?
If not, please push!
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#62254: [PATCH] guix: Shorten URL for home page in texlive importer.
2023-03-26 14:19 ` Ludovic Courtès
@ 2023-03-30 16:22 ` Nicolas Goaziou
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2023-03-30 16:22 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 62254-done
Hello,
Ludovic Courtès <ludo@gnu.org> writes:
>> + ,@(or (and=> (assoc-ref data 'name)
>> + (lambda (name)
>> + `((home-page ,(string-append "https://www.ctan.org/pkg/"
>> + name)))))
>
> Are there cases where ‘data’ might be missing ‘name’?
I don't think so. And even if assoc-ref returns #false, the template
would get the default home page.
> If not, please push!
Done. Thanks for the feedback
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-30 16:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-18 13:13 [bug#62254] [PATCH] guix: Shorten URL for home page in texlive importer Nicolas Goaziou
2023-03-26 14:19 ` Ludovic Courtès
2023-03-30 16:22 ` bug#62254: " Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.