]> git.saurik.com Git - apt.git/commitdiff
* ftparchive/apt-ftparchive.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 25 Jan 2011 09:23:23 +0000 (10:23 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 25 Jan 2011 09:23:23 +0000 (10:23 +0100)
  - fix endless loop for multiple TranslationsWriters

debian/changelog
ftparchive/apt-ftparchive.cc

index cf56a384efcc86b467a940712659e3fea72aba44..e08e998341249c5f17e7975ad86a445f541a478f 100644 (file)
@@ -11,6 +11,10 @@ apt (0.8.10) unstable; urgency=low
       will actually test uncompressed indexes regardless of the internal
       default value of Acquire::GzipIndexes.
 
+  [ David Kalnischkies ]
+  * ftparchive/apt-ftparchive.cc:
+    - fix endless loop for multiple TranslationsWriters
+
  -- Michael Vogt <michael.vogt@ubuntu.com>  Mon, 22 Nov 2010 10:40:45 +0100
 
 apt (0.8.9) unstable; urgency=low
index 73d34249b6237c9df0e2d1c8b365507e72216367..0c29002e60cf4e9eadf149ffd8ef0045ae0ac029 100644 (file)
@@ -832,7 +832,7 @@ bool Generate(CommandLine &CmdL)
    }
 
    // close the Translation master files
-   for (vector<PackageMap>::iterator I = PkgList.begin(); I != PkgList.end(); I++)
+   for (vector<PackageMap>::reverse_iterator I = PkgList.rbegin(); I != PkgList.rend(); I++)
       if (I->TransWriter != NULL && I->TransWriter->DecreaseRefCounter() == 0)
         delete I->TransWriter;