diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-01-03 12:00:16 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-01-03 12:25:48 +0100 |
commit | 473692b812b4ab4267d9bddad0fb27787d2112ff (patch) | |
tree | c87ccb76f48920934cbcacf90e57352e3012d0c8 /gnu/packages/patches/gcc-6-fix-isl-includes.patch | |
parent | 11235dd85a791ca7c88d964fb1f47ec876b43b4e (diff) |
refresh: Always return an <update-spec> for each command-line option.
This fixes a regression introduced in
8aeccc6240ec45f0bc7bed655e0c8149ae4253eb whereby packages specified via
-e, -r, or -m, as well as packages *not* specified on the command line,
would all lead to a wrong-type error.
Reported by Ricardo Wurmus <rekado@elephly.net> at
<https://lists.gnu.org/archive/html/guix-devel/2022-12/msg00311.html>.
* guix/scripts/refresh.scm (<update-spec>): Move above. Rename
constructor to '%update-spec' and add separate 'update-spec' procedure
with optional #:version parameter.
(options->update-specs): Always return a list of <update-spec> and
update docstring accordingly. Rename 'args-packages' to 'update-specs'
and ensure it's a list of <update-spec>; handle 'manifest' arguments
here.
Diffstat (limited to 'gnu/packages/patches/gcc-6-fix-isl-includes.patch')
0 files changed, 0 insertions, 0 deletions