]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/srcrecords.cc
initialize Verify in second pkgAcqIndex constructor
[apt.git] / apt-pkg / srcrecords.cc
index 2975599574fc9a67842a9ceb4628dccc71874a23..775cf2e5f98dcc21a0eab761ed66d945ea7828cd 100644 (file)
 #include <apt-pkg/srcrecords.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/sourcelist.h>
-#include <apt-pkg/strutl.h>
 #include <apt-pkg/metaindex.h>
+#include <apt-pkg/indexfile.h>
+#include <apt-pkg/macros.h>
+
+#include <string.h>
+#include <string>
+#include <vector>
 
 #include <apti18n.h>
                                                                        /*}}}*/
@@ -70,8 +75,9 @@ bool pkgSrcRecords::Restart()
    Current = Files.begin();
    for (std::vector<Parser*>::iterator I = Files.begin();
         I != Files.end(); ++I)
-      (*I)->Restart();
-   
+      if ((*I)->Offset() != 0)
+        (*I)->Restart();
+
    return true;
 }
                                                                        /*}}}*/