]> git.saurik.com Git - apt.git/commitdiff
make the main loop a while() instead of a for() as I find this (much) easier to read...
authorMichael Vogt <mvo@debian.org>
Thu, 24 Oct 2013 06:31:50 +0000 (08:31 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 24 Oct 2013 06:31:50 +0000 (08:31 +0200)
apt-pkg/deb/dpkgpm.cc

index 1a02115ba6fa0cafdd9411fa17b8f40abdad25c8..56358ae87d68a1eff6bd8fd4d62b02cea74b4413 100644 (file)
@@ -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;