summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-12 07:41:17 +0100
committerMichael Vogt <mvo@debian.org>2013-12-12 07:41:17 +0100
commit017d3f3b4b0da976b1d2ecfcd26251369c5aec88 (patch)
tree4d19b9797e8d7a8ffec8b5fb39937fd946ccfb69
parentfc85b0d8f3c2d63efcad2590e021d70c2ba700da (diff)
clarify error message when apt-get source=ver fails, print a real error message instead of "ignoring"
-rw-r--r--cmdline/apt-get.cc2
-rwxr-xr-xtest/integration/test-apt-get-source2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index c2b59a83c..6973901dc 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -416,7 +416,7 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs,
if (Last != 0 || VerTag.empty() == true)
break;
- _error->Error(_("Ignore unavailable version '%s' of package '%s'"), VerTag.c_str(), TmpSrc.c_str());
+ _error->Error(_("Can not find version '%s' of package '%s'"), VerTag.c_str(), TmpSrc.c_str());
return 0;
}
diff --git a/test/integration/test-apt-get-source b/test/integration/test-apt-get-source
index c8db4edbe..3ee7a9e23 100755
--- a/test/integration/test-apt-get-source
+++ b/test/integration/test-apt-get-source
@@ -62,7 +62,7 @@ Need to get 0 B of source archives.
# unavailable one
testequal "$HEADER
-E: Ignore unavailable version '9.9-not-there' of package 'foo'
+E: Can not find 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
# version and release