]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
Support large files in the complete toolset. Indexes of this
[apt.git] / apt-pkg / depcache.cc
index 0fbd77fd81407e436d90dd48cda18aa149568650..8dde7c17320596364a7a4bb708070edb194894e2 100644 (file)
@@ -171,14 +171,14 @@ bool pkgDepCache::readStateFile(OpProgress *Prog)                 /*{{{*/
    string const state = _config->FindFile("Dir::State::extended_states");
    if(RealFileExists(state)) {
       state_file.Open(state, FileFd::ReadOnly);
-      int const file_size = state_file.Size();
+      off_t const file_size = state_file.Size();
       if(Prog != NULL)
         Prog->OverallProgress(0, file_size, 1, 
                               _("Reading state information"));
 
       pkgTagFile tagfile(&state_file);
       pkgTagSection section;
-      int amt = 0;
+      off_t amt = 0;
       bool const debug_autoremove = _config->FindB("Debug::pkgAutoRemove",false);
       while(tagfile.Step(section)) {
         string const pkgname = section.FindS("Package");