[PATCH] Add bandwith throttling to yum backend

Tim Lauridsen tla at rasmil.dk
Thu Sep 27 00:26:40 PDT 2007


---
 backends/yum/helpers/yumBackend.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/backends/yum/helpers/yumBackend.py b/backends/yum/helpers/yumBackend.py
index ea670fa..b65468d 100644
--- a/backends/yum/helpers/yumBackend.py
+++ b/backends/yum/helpers/yumBackend.py
@@ -409,6 +409,7 @@ class PackageKitYumBackend(PackageKitBaseBackend):
                                                                                                
     def _setup_yum(self):
         self.yumbase.doConfigSetup(errorlevel=0,debuglevel=0) # Setup Yum Config
+        self.yumbase.conf.throttle = "40%"    # Set bandwidth throttle to 40%
         self.dnlCallback = DownloadCallback(self,showNames=True)      # Download callback
         self.yumbase.repos.setProgressBar( self.dnlCallback )         # Setup the download callback class
 
-- 
1.5.2.2


--------------020401090909010008090503--


More information about the PackageKit mailing list