summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-01-25 10:23:23 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-01-25 10:23:23 +0100
commit38b251951febed4617f7992e4965b09a8bb732ca (patch)
tree02b5f3bb48c7bfd651a414a3cc8f546f088a909e
parent64553ed102c5a52604ea632b268c81f789b12176 (diff)
* ftparchive/apt-ftparchive.cc:
- fix endless loop for multiple TranslationsWriters
-rw-r--r--debian/changelog4
-rw-r--r--ftparchive/apt-ftparchive.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index cf56a384e..e08e99834 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc
index 73d34249b..0c29002e6 100644
--- a/ftparchive/apt-ftparchive.cc
+++ b/ftparchive/apt-ftparchive.cc
@@ -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;