]> git.saurik.com Git - apt.git/commitdiff
add test for aptget source for unavailable package
authorMichael Vogt <mvo@debian.org>
Wed, 4 Dec 2013 15:26:57 +0000 (16:26 +0100)
committerMichael Vogt <mvo@debian.org>
Wed, 4 Dec 2013 15:26:57 +0000 (16:26 +0100)
test/integration/test-apt-get-source

index 0f9e29c806fccacdfab57f574383f5c7f8e48c2d..5bef781f1f3135df3c865ccec237f7875e905dc3 100755 (executable)
@@ -53,3 +53,8 @@ Need to get 0 B of source archives.
 'file://${APTARCHIVE}/foo_0.1.dsc' foo_0.1.dsc 0 MD5Sum:d41d8cd98f00b204e9800998ecf8427e
 'file://${APTARCHIVE}/foo_0.1.tar.gz' foo_0.1.tar.gz 0 MD5Sum:d41d8cd98f00b204e9800998ecf8427e" aptget source -q --print-uris foo/wheezy
 
+# unavailable one
+testequal "$HEADER
+E: Ignore unavailable version '9.9-not-there' of package 'foo'
+E: Unable to find a source package for foo" aptget source -q --print-uris foo=9.9-not-there
+