summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2004-12-23 11:29:13 +0000
committerMichael Vogt <mvo@debian.org>2004-12-23 11:29:13 +0000
commita789b983b99696793857dd58f6d4ea1efe17470e (patch)
tree198cdd2c03d202abec9e79a91081574b934fcccd /apt-pkg
parent5f0ccad882f7d811e4bea2a7b269f32be2fb1bd9 (diff)
* changelog updated, version is now 0.6.27ubuntu4; added DEB_BUILD_PROG_OPTS to debian/rules
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc12
1 files changed, 9 insertions, 3 deletions
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