summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-16 11:02:47 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-16 11:02:47 +0200
commita235ddf86a9cc5c3a8fade9084044229ff51a77f (patch)
tree9a715fb2bfd7c54c13db2cc8b5b05a672a810868 /apt-pkg/acquire-item.cc
parentd1c60ab4356c195a66af09e07eb068093a4df6a9 (diff)
downloadapt-a235ddf86a9cc5c3a8fade9084044229ff51a77f.tar.gz
apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: #622912)
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 1d651ba6..7b120d3c 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1504,7 +1504,7 @@ void pkgAcqMetaIndex::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
/* Always move the meta index, even if gpgv failed. This ensures
* that PackageFile objects are correctly filled in */
- {
+ if (FileExists(DestFile)) {
string FinalFile = _config->FindDir("Dir::State::lists");
FinalFile += URItoFileName(RealURI);
/* InRelease files become Release files, otherwise