X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6aef1942f441e6e667982b92802907026d8cc7c6..2906182db398419a9c59a928b7ae73cf7c7aa307:/methods/mirror.cc diff --git a/methods/mirror.cc b/methods/mirror.cc index 01eed09f0..71faaf591 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -58,7 +57,7 @@ using namespace std; */ MirrorMethod::MirrorMethod() - : HttpMethod(), DownloadedMirrorFile(false), Debug(false) + : HttpMethod("mirror"), DownloadedMirrorFile(false), Debug(false) { } @@ -69,7 +68,7 @@ bool MirrorMethod::Configuration(string Message) { if (pkgAcqMethod::Configuration(Message) == false) return false; - Debug = _config->FindB("Debug::Acquire::mirror",false); + Debug = DebugEnabled(); return true; } @@ -465,11 +464,7 @@ void MirrorMethod::URIDone(FetchResult &Res,FetchResult *Alt) int main() { - setlocale(LC_ALL, ""); - - MirrorMethod Mth; - - return Mth.Loop(); + return MirrorMethod().Loop(); }