[Yum-devel] [PATCH 2/7] Fix pylint issue:

Tim Lauridsen tim.lauridsen at gmail.com
Tue Nov 29 13:06:19 UTC 2011


************* Module yum
E9905:4858:YumBase._ui_nevra_dict: Too many arguments for format string
---
 yum/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index b07bbb2..797838a 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -4855,7 +4855,7 @@ class YumBase(depsolve.Depsolve):
         if e and v and r:
             evr = '%s:%s-%s' % (e, v, r)
         elif v and r:
-            evr = '%s-%s' % (e, v, r)
+            evr = '%s-%s' % (v, r)
         elif e and v:
             evr = '%s:%s' % (e, v)
         elif v: # e and r etc. is just too weird to print
-- 
1.7.1



More information about the Yum-devel mailing list