]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
* merged with mainline
[apt.git] / apt-pkg / acquire.cc
index 62209e65b2140907cc3af428b7482037a62b44e3..57cf60bfe1f46bbf2851b46768bc372c394ebc53 100644 (file)
@@ -266,7 +266,11 @@ pkgAcquire::MethodConfig *pkgAcquire::GetConfig(string Access)
    Worker Work(Conf);
    if (Work.Start() == false)
       return 0;
-   
+
+   /* if a method uses DownloadLimit, we switch to SingleInstance mode */
+   if(_config->FindI("Acquire::"+Access+"::DlLimit",0) > 0)
+      Conf->SingleInstance = true;
+    
    return Conf;
 }
                                                                        /*}}}*/