Browse Source

clarify error message when apt-get source=ver fails, print a real error message instead of "ignoring"

Michael Vogt 12 years ago
parent
commit
017d3f3b4b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      cmdline/apt-get.cc
  2. 1 1
      test/integration/test-apt-get-source

+ 1 - 1
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;
    }
 

+ 1 - 1
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