diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-08-11 17:09:08 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-08-15 09:38:29 -0400 |
commit | 2884abb3df4f95cef75219435ce9c1c968068568 (patch) | |
tree | c601ca6e7211e113c81ba7196162c92af04d2e40 /tests/guix-refresh.sh | |
parent | 2279e3e60479e91838db2d7261e86e91f9891650 (diff) |
refresh: Add --target-version option.
* guix/scripts/refresh.scm (%options): Register 'target-version' long version.
(update-specification->update-spec): Add a fallback-version argument.
(options->update-specs): Honor target-version option.
* tests/guix-refresh.sh: Test it.
* doc/guix.texi (Invoking guix refresh): Document it.
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/guix-refresh.sh')
-rw-r--r-- | tests/guix-refresh.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/guix-refresh.sh b/tests/guix-refresh.sh index 51d34c4b51..2ce3c592ab 100644 --- a/tests/guix-refresh.sh +++ b/tests/guix-refresh.sh @@ -109,6 +109,13 @@ case "$(guix refresh -t test guile=2.0.0 2>&1)" in *"failed to find"*"2.0.0"*) true;; *) false;; esac + +guix refresh -t test guile --target-version=2.0.0 # XXX: should return non-zero? +case "$(guix refresh -t test guile --target-version=2.0.0 2>&1)" in + *"failed to find"*"2.0.0"*) true;; + *) false;; +esac + for spec in "guile=1.6.4" "guile@3=1.6.4" do guix refresh -t test "$spec" |