Browse Source

fix progress reporting while reading extended_states file

David Kalnischkies 16 years ago
parent
commit
eef21b9f52
1 changed files with 3 additions and 3 deletions
  1. 3 3
      apt-pkg/depcache.cc

+ 3 - 3
apt-pkg/depcache.cc

@@ -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;