diff options
author | Michael Vogt <mvo@debian.org> | 2014-07-31 18:40:05 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-07-31 18:40:05 +0200 |
commit | c5fced388848b967f0ce076656cad5366517f981 (patch) | |
tree | b49be7020180323cc592f53c6c8b68ec21647b69 /apt-pkg | |
parent | 6d979490c13e9d8004942507c99d152c22184a27 (diff) |
ensure InRelease->Release is transactional as well
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 31dc2073d..2d9328b6b 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1888,6 +1888,7 @@ void pkgAcqMetaIndex::Failed(string /*Message*/, ReportMirrorFailure("GPGFailure"); } #endif + /* Always move the meta index, even if gpgv failed. This ensures * that PackageFile objects are correctly filled in */ if (FileExists(DestFile)) { @@ -1902,9 +1903,9 @@ void pkgAcqMetaIndex::Failed(string /*Message*/, "Release"); SigFile = FinalFile; } - Rename(DestFile,FinalFile); - chmod(FinalFile.c_str(),0644); + // Done, queue for rename on transaction finished + PartialFile = DestFile; DestFile = FinalFile; } |