summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2012-02-23 14:49:46 +0800
committerGui Chen <gui.chen@intel.com>2012-02-23 14:49:46 +0800
commit8e238c9d111b43182609723cda17c067a0cff33c (patch)
treeb66ce89b31d17397e046020f28fe4bea1b77b8b1 /plugins
parent4913804ac656a41f3384fffc179da4f5600e7fe8 (diff)
downloadmic-8e238c9d111b43182609723cda17c067a0cff33c.tar.gz
mic-8e238c9d111b43182609723cda17c067a0cff33c.tar.bz2
mic-8e238c9d111b43182609723cda17c067a0cff33c.zip
fix the type issue in opensuse 12.1
issue shows "can't multiply sequence by non-int of type 'float': if cur > max_size + max_size*.10" Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/backend/yumpkgmgr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py
index 67fa6dd..5df7220 100644
--- a/plugins/backend/yumpkgmgr.py
+++ b/plugins/backend/yumpkgmgr.py
@@ -64,6 +64,7 @@ class MyYumRepository(yum.yumRepo.YumRepository):
m2c_connection = M2Crypto.SSL.Connection.clientPostConnectionCheck
M2Crypto.SSL.Connection.clientPostConnectionCheck = None
+ size = int(size) if size else None
rvalue = super(MyYumRepository, self)._getFile(url,
relative,
local,