]> git.saurik.com Git - apt.git/blobdiff - methods/mirror.cc
apt-pkg/contrib/netrc.cc: use a slightly smaller login/password size
[apt.git] / methods / mirror.cc
index 61a7f12fd0aef68bbf424f42d28253e9e5de20b2..3b2ab8ede38cf2c761bec7e7e37774b903d0b671 100644 (file)
@@ -18,7 +18,8 @@
 #include <apt-pkg/error.h>
 #include <apt-pkg/hashes.h>
 #include <apt-pkg/sourcelist.h>
-
+#include <apt-pkg/configuration.h>
+#include <apt-pkg/metaindex.h>
 
 #include <algorithm>
 #include <fstream>
@@ -146,7 +147,7 @@ bool MirrorMethod::DownloadMirrorFile(string mirror_uri_str)
    // append all architectures
    std::vector<std::string> vec = APT::Configuration::getArchitectures();
    for (std::vector<std::string>::const_iterator I = vec.begin();
-        I != vec.end(); I++)
+        I != vec.end(); ++I)
       if (I == vec.begin())
          fetch += "?arch" + (*I);
       else