[bug#62254] guix: Shorten URL for home page in texlive importer.
Commit Message
* guix/import/texlive.scm (tlpdb->package): Use short URL for home page.
---
guix/import/texlive.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
base-commit: 3893758dac76fc30b23d4715e849e262306f268d
Comments
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’.
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,
@@ -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