summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-10-24 08:31:50 +0200
committerMichael Vogt <mvo@debian.org>2013-10-24 08:31:50 +0200
commita18456a58a9ad2fe33f7fbd202533a115712df96 (patch)
treef47f32def9534680a3f8ea14305382855182cf52 /apt-pkg/deb/dpkgpm.cc
parent51355387e5a5d4d7275a34b1c22f0ef5a76172d5 (diff)
make the main loop a while() instead of a for() as I find this (much) easier to read this way)
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 1a02115ba..56358ae87 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -1087,8 +1087,9 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress)
dpkgMultiArch = true;
}
- // this loop is runs once per operation
- for (vector<Item>::const_iterator I = List.begin(); I != List.end();)
+ // go over each item
+ vector<Item>::const_iterator I = List.begin();
+ while (I != List.end())
{
// Do all actions with the same Op in one run
vector<Item>::const_iterator J = I;