diff options
| author | Mathieu Lirzin <mthl@gnu.org> | 2016-02-28 23:11:36 +0100 |
|---|---|---|
| committer | Mathieu Lirzin <mthl@gnu.org> | 2016-03-02 21:41:41 +0100 |
| commit | 1b846da8c372bee78851439fd9e72b2499115e5a (patch) | |
| tree | 64702b006ce99e7bfd95538152218a63decf3152 /tests/guix-build.sh | |
| parent | fad155d47ea22c7ffd042ffddd03b0a6babd3b65 (diff) | |
utils: Use '@' for separating package names and version numbers.
This provides the ability to use numbers in package names.
Fixes <http://bugs.gnu.org/19219>.
* guix/utils.scm (package-name->name+version): New procedure.
* gnu/packages.scm (%find-package): Add a FALLBACK? keyword argument.
Use the previous method when no package is found.
(specification->package+output, specification->package): Adapt
documentation to new syntax.
* doc/guix.texi (Invoking guix package, Invoking guix import): Likewise.
* guix/ui.scm (package-specification->name+version+output): Likewise.
* guix/scripts/import/hackage.scm (show-help): Likewise.
* tests/guix-build.sh: Adapt to new syntax.
* tests/guix-lint.sh: Likewise.
* tests/guix-package.sh: Likewise.
* tests/ui.scm ("package-specification->name+version+output"): Likewise.
* tests/utils.scm ("package-name->name+version"): Likewise.
* NEWS: Mention new syntax.
Diffstat (limited to 'tests/guix-build.sh')
| -rw-r--r-- | tests/guix-build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh index 778911b2f8f..5821e509af3 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh | |||
| @@ -161,8 +161,8 @@ then false; else true; fi | |||
| 161 | 161 | ||
| 162 | # Parsing package names and versions. | 162 | # Parsing package names and versions. |
| 163 | guix build -n time # PASS | 163 | guix build -n time # PASS |
| 164 | guix build -n time-1.7 # PASS, version found | 164 | guix build -n time@1.7 # PASS, version found |
| 165 | if guix build -n time-3.2; # FAIL, version not found | 165 | if guix build -n time@3.2; # FAIL, version not found |
| 166 | then false; else true; fi | 166 | then false; else true; fi |
| 167 | if guix build -n something-that-will-never-exist; # FAIL | 167 | if guix build -n something-that-will-never-exist; # FAIL |
| 168 | then false; else true; fi | 168 | then false; else true; fi |
