From a789b983b99696793857dd58f6d4ea1efe17470e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 23 Dec 2004 11:29:13 +0000 Subject: * changelog updated, version is now 0.6.27ubuntu4; added DEB_BUILD_PROG_OPTS to debian/rules --- apt-pkg/acquire-item.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'apt-pkg/acquire-item.cc') diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index fcd655f2a..d1bed417b 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -352,7 +352,7 @@ string pkgAcqMetaSig::Custom600Headers() struct stat Buf; if (stat(Final.c_str(),&Buf) != 0) return "\nIndex-File: true"; - + return "\nIndex-File: true\nLast-Modified: " + TimeRFC1123(Buf.st_mtime); } @@ -392,8 +392,14 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf) // mistakenly trusted string Final = _config->FindDir("Dir::State::lists") + URItoFileName(RealURI); unlink(Final.c_str()); - Final = _config->FindDir("Dir::State::lists") + "partial/"+ URItoFileName(RealURI); - unlink(Final.c_str()); + + // if we debug leave the sig-file in partial/ to see what went wrong + // else delete it + if (!_config->FindB("Debug::pkgAcquire::Auth", false)) { + + Final = _config->FindDir("Dir::State::lists") + "partial/"+ URItoFileName(RealURI); + unlink(Final.c_str()); + } // queue a pkgAcqMetaIndex with no sigfile -- cgit v1.2.3