import: texlive: Import the given version when specified.

Fixes a regression in ‘tests/texlive.scm’ introduced in commit
f13f076968 whereby ‘texlive-tags’ would be
called unconditionally, leading to an attempt to build Subversion.

* guix/import/texlive.scm (texlive->guix-package): Honor VERSION when it
is true.

Change-Id: I05e158fe55c65f7547c7150f00a589b4f600a40a
This commit is contained in:
Ludovic Courtès 2025-05-24 15:29:10 +02:00
parent 91c26959dc
commit 096dedd0bb
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -769,7 +769,8 @@ associated Guix package, or #f on failure. Fetch metadata for a specific
version whenever VERSION keyword is specified. Otherwise, grab package latest version whenever VERSION keyword is specified. Otherwise, grab package latest
release. When DATABASE is provided, fetch metadata from there, ignoring release. When DATABASE is provided, fetch metadata from there, ignoring
VERSION." VERSION."
(let ((version (find-version (texlive-tags) version #t))) (let ((version (or version
(find-version (texlive-tags) version #t))))
(tlpdb->package name version (or database (tlpdb/cached version)))))) (tlpdb->package name version (or database (tlpdb/cached version))))))
(define* (texlive-recursive-import name #:key repo version) (define* (texlive-recursive-import name #:key repo version)