diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-11 09:21:26 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-11 09:21:26 +0100 |
commit | 37f45a579d4344c3ef6a044b12b992353e238301 (patch) | |
tree | 9172e1bc4cf8e23f258bfba1bf8447fb96c917b0 /test/integration | |
parent | adf379e7ad1900db6d3942ac7dca5cec4737d9a1 (diff) |
improve error message for apt-get source pkg:arch{=ver,/release}
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-apt-get-source-arch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/test-apt-get-source-arch b/test/integration/test-apt-get-source-arch index 3ac6907a9..97d0e096a 100755 --- a/test/integration/test-apt-get-source-arch +++ b/test/integration/test-apt-get-source-arch @@ -58,3 +58,13 @@ Need to get 0 B of source archives. testequal "$HEADER E: Can not find a package for architecture 'not-a-available-arch' E: Unable to find a source package for foo:not-a-available-arch" aptget source -q --print-uris foo:not-a-available-arch + +# error on unavailable version for arch +testequal "$HEADER +E: Can not find a package 'foo:amd64' with version '2.0' and release '' +E: Unable to find a source package for foo:amd64=2.0" aptget source -q --print-uris foo:amd64=2.0 + +# error on unavailable release for arch +testequal "$HEADER +E: Can not find a package 'foo:amd64' with version '' and release 'oldstable' +E: Unable to find a source package for foo:amd64/oldstable" aptget source -q --print-uris foo:amd64/oldstable |