]> git.saurik.com Git - apt.git/commitdiff
fix progress reporting while reading extended_states file
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 7 Feb 2010 18:26:02 +0000 (19:26 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 7 Feb 2010 18:26:02 +0000 (19:26 +0100)
apt-pkg/depcache.cc

index ec7a5de647b341aae15d02dfd8787242043c0adc..5943d858a2fb6d5373bc4a2004f50ba93cddfff1 100644 (file)
@@ -192,10 +192,10 @@ bool pkgDepCache::readStateFile(OpProgress *Prog)                 /*{{{*/
               Prog->OverallProgress(amt, file_size, 1, 
                                     _("Reading state information"));
         }
-        if(Prog != NULL)
-           Prog->OverallProgress(file_size, file_size, 1, 
-                                 _("Reading state information"));
       }
+      if(Prog != NULL)
+        Prog->OverallProgress(file_size, file_size, 1,
+                              _("Reading state information"));
    }
 
    return true;