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 ec7a5de..5943d85 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;