diff options
author | Ludovic Courtès <ludo@gnu.org> | 2025-05-24 15:29:10 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-05-24 15:29:10 +0200 |
commit | 096dedd0bb13523002c814b001429c2f65b6f10d (patch) | |
tree | ed51407ec777ea484877ce32c17e367aa9357028 | |
parent | 91c26959dca33b52f7b251ce9645c1f4f34810bb (diff) |
import: texlive: Import the given version when specified.
Fixes a regression in ‘tests/texlive.scm’ introduced in commit
f13f0769688493271f43f31a016957355dbecb30 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
-rw-r--r-- | guix/import/texlive.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm index 3266146b46..4f7bc55ffd 100644 --- a/guix/import/texlive.scm +++ b/guix/import/texlive.scm @@ -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 release. When DATABASE is provided, fetch metadata from there, ignoring 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)))))) (define* (texlive-recursive-import name #:key repo version) |