Parcourir la source

apt-pkg/acquire-item.cc: improve error message for valid-until

Michael Vogt il y a 15 ans
Parent
commit
457bea86ba
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      apt-pkg/acquire-item.cc

+ 4 - 2
apt-pkg/acquire-item.cc

@@ -1473,8 +1473,10 @@ bool pkgAcqMetaIndex::VerifyVendor(string Message)			/*{{{*/
 	 // TRANSLATOR: The first %s is the URL of the bad Release file, the second is
 	 // the time since then the file is invalid - formated in the same way as in
 	 // the download progress display (e.g. 7d 3h 42min 1s)
-	 return _error->Error(_("Release file expired, ignoring %s (invalid since %s)"),
-	                      RealURI.c_str(), TimeToStr(invalid_since).c_str());
+	 return _error->Error(
+            _("Release file for %s is expired (invalid since %s). "
+              "Updates for this repository will not be applied."),
+            RealURI.c_str(), TimeToStr(invalid_since).c_str());
    }
 
    if (_config->FindB("Debug::pkgAcquire::Auth", false))