[yum-cvs] yum/rpmUtils miscutils.py,1.17,1.18

Jeremy Katz katzj at linux.duke.edu
Wed Feb 14 16:03:58 UTC 2007


Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login1.linux.duke.edu:/tmp/cvs-serv16012/rpmUtils

Modified Files:
	miscutils.py 
Log Message:
epoch value should always be a string


Index: miscutils.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/miscutils.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- miscutils.py	10 Dec 2006 01:47:22 -0000	1.17
+++ miscutils.py	14 Feb 2007 16:03:56 -0000	1.18
@@ -315,7 +315,7 @@
     i = verstring.find(':')
     if i != -1:
         try:
-            epoch = long(verstring[:i])
+            epoch = str(long(verstring[:i]))
         except ValueError:
             # look, garbage in the epoch field, how fun, kill it
             epoch = '0' # this is our fallback, deal




More information about the Yum-cvs-commits mailing list