Explorar o código

fix progress reporting while reading extended_states file

David Kalnischkies %!s(int64=16) %!d(string=hai) anos
pai
achega
eef21b9f52
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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;