summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-03-26 09:18:05 +0100
committerLudovic Courtès <ludo@gnu.org>2026-03-29 22:32:28 +0200
commit365dbc5b1cf31650b7a5ff7798993e226e9d98aa (patch)
treeedc302f3e609ae1f61cf2e56e052ef8d5ac92273 /tests
parent0a8acc00599a43763697f8bfc4542ff0b34cf689 (diff)
import: elpa: Gracefully handle invalid ELPA version lists.
Previously version lists containing zeroes would be rejected; furthermore, #f would be returned even though callers expect a string: $ guix refresh emacs-counsel guix refresh: Package version for counsel contains non numeric part. Backtrace: […] In guix/utils.scm: 925:32 5 (_ #f "0.15.1") In unknown file: 4 (string->pointer #f #<undefined>) […] guix/ui.scm:920:18: In procedure string->pointer: Wrong type argument in position 1 (expecting string): #f * guix/import/elpa.scm (elpa-version->string): Accept zeroes in ‘elpa-version’. Raise an error instead of returning #f on failure. Clarify error messages. Change-Id: I1ab1d6892b434747d91e9090bb5f2f3c93f1ee92 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #7484
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions