[Yum-devel] [PATCH 1/3] Add 'parallel' option to YumConf and RepoConf.

Zdeněk Pavlas zpavlas at redhat.com
Wed Jul 27 12:23:26 UTC 2011


Option sets the number of processes to use for downloading
packages from the specific repository, YumConf value being
the default.
---
 yum/config.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yum/config.py b/yum/config.py
index dbf1784..d7de748 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -687,6 +687,7 @@ class YumConf(StartupConf):
 
     bandwidth = BytesOption(0)
     throttle = ThrottleOption(0)
+    parallel = IntOption(0)
 
     http_caching = SelectionOption('all', ('none', 'packages', 'all'))
     metadata_expire = SecondsOption(60 * 60 * 6) # Time in seconds (6h).
@@ -823,6 +824,7 @@ class RepoConf(BaseConfig):
 
     bandwidth = Inherit(YumConf.bandwidth)
     throttle = Inherit(YumConf.throttle)
+    parallel = Inherit(YumConf.parallel)
     timeout = Inherit(YumConf.timeout)
     http_caching = Inherit(YumConf.http_caching)
     metadata_expire = Inherit(YumConf.metadata_expire)
-- 
1.7.4.4



More information about the Yum-devel mailing list