]> git.saurik.com Git - apt.git/blobdiff - methods/mirror.cc
tests: don't do boundless string compares with data()
[apt.git] / methods / mirror.cc
index 9d900771be8255c1b926e604727646307c1aca84..71faaf5916962bb659a0b2a2444d6d3a0699217a 100644 (file)
@@ -57,7 +57,7 @@ using namespace std;
  */
 
 MirrorMethod::MirrorMethod()
-   : HttpMethod(), DownloadedMirrorFile(false), Debug(false)
+   : HttpMethod("mirror"), DownloadedMirrorFile(false), Debug(false)
 {
 }
 
@@ -68,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;
 }