summaryrefslogtreecommitdiff
path: root/guix/import
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-05-24 15:29:10 +0200
committerLudovic Courtès <ludo@gnu.org>2025-05-24 15:29:10 +0200
commit096dedd0bb13523002c814b001429c2f65b6f10d (patch)
treeed51407ec777ea484877ce32c17e367aa9357028 /guix/import
parent91c26959dca33b52f7b251ce9645c1f4f34810bb (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
Diffstat (limited to 'guix/import')
-rw-r--r--guix/import/texlive.scm3
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)