diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-11-22 22:11:06 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-11-22 22:11:06 +0000 |
commit | 7c6e2dc761f736bf203f7770f7a1c4a63f7063d4 (patch) | |
tree | 9dc397a4779e2eae6b99e409961973878c870b4a /apt-pkg | |
parent | 46e00f9d71300f3a80a4a311e369e64a48ce396f (diff) |
* merged http download limit for apt (#146877)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 62209e65b..57cf60bfe 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -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; } /*}}}*/ |