clarify error message when apt-get source=ver fails, print a real error message inste...
authorMichael Vogt <mvo@debian.org>
Thu, 12 Dec 2013 06:41:17 +0000 (07:41 +0100)
committerMichael Vogt <mvo@debian.org>
Thu, 12 Dec 2013 06:41:17 +0000 (07:41 +0100)
cmdline/apt-get.cc
test/integration/test-apt-get-source

index c2b59a8..6973901 100644 (file)
@@ -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;
    }
 
index c8db4ed..3ee7a9e 100755 (executable)
@@ -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