]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
* another bug in QueueNextDiff fixed
[apt.git] / apt-pkg / acquire.cc
index 70dce4f540a4ac23e047cd1e855cf4840cb01fca..212c8d52bfc2ba806993e94b76eb8f8855ed1929 100644 (file)
@@ -266,6 +266,10 @@ pkgAcquire::MethodConfig *pkgAcquire::GetConfig(string Access)
    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;
 }
                                                                        /*}}}*/