diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-03-08 11:38:46 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-08 11:38:46 +0100 |
| commit | 95cd4971d07fe312a4e0d21b72e7bf1bba493753 (patch) | |
| tree | 430b9456a45417dd6adbf8d553deb1ee86b01f9b /tests | |
| parent | 7befee308b773b78a1039315203f71e57eca763d (diff) | |
packages: Support the deprecated "NAME-VERSION" syntax.
Fixes a typo introduced in 1b846da8c372bee78851439fd9e72b2499115e5a that
would lead to a backtrace when using the deprecated syntax.
* gnu/packages.scm (%find-package): Turn the first argument to
'call-with-values' into a thunk. Use #:select instead of '@' to select
the right 'package-name->name+version' procedure.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/guix-build.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh index ae75bcfab08..6d4f97019ab 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh | |||
| @@ -171,6 +171,7 @@ then false; else true; fi | |||
| 171 | # Parsing package names and versions. | 171 | # Parsing package names and versions. |
| 172 | guix build -n time # PASS | 172 | guix build -n time # PASS |
| 173 | guix build -n time@1.7 # PASS, version found | 173 | guix build -n time@1.7 # PASS, version found |
| 174 | guix build -n time-1.7 # PASS, deprecated version syntax | ||
| 174 | if guix build -n time@3.2; # FAIL, version not found | 175 | if guix build -n time@3.2; # FAIL, version not found |
| 175 | then false; else true; fi | 176 | then false; else true; fi |
| 176 | if guix build -n something-that-will-never-exist; # FAIL | 177 | if guix build -n something-that-will-never-exist; # FAIL |
