Explorar el Código

apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: #622912)

Julian Andres Klode hace 15 años
padre
commit
a235ddf86a
Se han modificado 2 ficheros con 8 adiciones y 1 borrados
  1. 1 1
      apt-pkg/acquire-item.cc
  2. 7 0
      debian/changelog

+ 1 - 1
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
    /* Always move the meta index, even if gpgv failed. This ensures
     * that PackageFile objects are correctly filled in */
     * that PackageFile objects are correctly filled in */
-   {
+   if (FileExists(DestFile)) {
       string FinalFile = _config->FindDir("Dir::State::lists");
       string FinalFile = _config->FindDir("Dir::State::lists");
       FinalFile += URItoFileName(RealURI);
       FinalFile += URItoFileName(RealURI);
       /* InRelease files become Release files, otherwise
       /* InRelease files become Release files, otherwise

+ 7 - 0
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 <jak@debian.org>  Sat, 16 Apr 2011 11:00:19 +0200
+
 apt (0.8.14) unstable; urgency=low
 apt (0.8.14) unstable; urgency=low
 
 
   [ Julian Andres Klode ]
   [ Julian Andres Klode ]