From: Julian Andres Klode Date: Sat, 16 Apr 2011 09:02:47 +0000 (+0200) Subject: apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: #622912) X-Git-Tag: 0.8.14.1~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a235ddf86a9cc5c3a8fade9084044229ff51a77f apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: #622912) --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 1d651ba69..7b120d3ce 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 diff --git a/debian/changelog b/debian/changelog index c2e2dc70d..857630dc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.8.14.1) UNRELEASED; urgency=low + + * apt-pkg/acquire-item.cc: + - Only try to rename existing Release files (Closes: #622912) + + -- Julian Andres Klode Sat, 16 Apr 2011 11:00:19 +0200 + apt (0.8.14) unstable; urgency=low [ Julian Andres Klode ]