[yum-cvs] yum/rpmUtils miscutils.py, 1.15.2.2, 1.15.2.3 updates.py, 1.23.2.2, 1.23.2.3
James Bowes
jbowes at linux.duke.edu
Tue Dec 5 14:39:36 UTC 2006
- Previous message: [yum-cvs] yum/yum comps.py, 1.10.4.2, 1.10.4.3 depsolve.py, 1.105.2.2, 1.105.2.3 failover.py, 1.2.8.1, 1.2.8.2 mdparser.py, 1.5.4.1, 1.5.4.2 misc.py, 1.19.2.4, 1.19.2.5 packageSack.py, 1.18.2.4, 1.18.2.5 packages.py, 1.73.2.5, 1.73.2.6 pgpmsg.py, 1.5.4.1, 1.5.4.2 sqlitecache.py, 1.13.2.1, 1.13.2.2 update_md.py, 1.3.2.1, 1.3.2.2
- Next message: [yum-cvs] yum callback.py, 1.29.2.2, 1.29.2.3 cli.py, 1.241.2.6, 1.241.2.7 output.py, 1.72.2.3, 1.72.2.4 progress_meter.py, 1.3.6.2, 1.3.6.3 shell.py, 1.33.2.3, 1.33.2.4 yum-updatesd.py, 1.22.2.7, 1.22.2.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login1.linux.duke.edu:/tmp/cvs-serv17412/rpmUtils
Modified Files:
Tag: yum-3_0_X
miscutils.py updates.py
Log Message:
Pychecker fixes back again, less the brokenness
Index: miscutils.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/miscutils.py,v
retrieving revision 1.15.2.2
retrieving revision 1.15.2.3
diff -u -r1.15.2.2 -r1.15.2.3
--- miscutils.py 5 Dec 2006 14:03:33 -0000 1.15.2.2
+++ miscutils.py 5 Dec 2006 14:39:34 -0000 1.15.2.3
@@ -15,7 +15,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Copyright 2003 Duke University
-import string
import rpm
import types
import gzip
@@ -240,16 +239,16 @@
if filename[-4:] == '.rpm':
filename = filename[:-4]
- archIndex = string.rfind(filename, '.')
+ archIndex = filename.rfind('.')
arch = filename[archIndex+1:]
- relIndex = string.rfind(filename[:archIndex], '-')
+ relIndex = filename[:archIndex].rfind('-')
rel = filename[relIndex+1:archIndex]
- verIndex = string.rfind(filename[:relIndex], '-')
+ verIndex = filename[:relIndex].rfind('-')
ver = filename[verIndex+1:relIndex]
- epochIndex = string.find(filename, ':')
+ epochIndex = filename.find(':')
if epochIndex == -1:
epoch = ''
else:
@@ -313,16 +312,16 @@
def stringToVersion(verstring):
if verstring is None:
return ('0', None, None)
- i = string.find(verstring, ':')
+ i = verstring.find(':')
if i != -1:
try:
- epoch = string.atol(verstring[:i])
+ epoch = long(verstring[:i])
except ValueError:
# look, garbage in the epoch field, how fun, kill it
epoch = '0' # this is our fallback, deal
else:
epoch = '0'
- j = string.find(verstring, '-')
+ j = verstring.find('-')
if j != -1:
if verstring[i + 1:j] == '':
version = None
Index: updates.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/updates.py,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -u -r1.23.2.2 -r1.23.2.3
--- updates.py 5 Dec 2006 14:03:33 -0000 1.23.2.2
+++ updates.py 5 Dec 2006 14:39:34 -0000 1.23.2.3
@@ -14,9 +14,9 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Copyright 2004 Duke University
+import rpmUtils
import rpmUtils.miscutils
import rpmUtils.arch
-import rpmUtils
class Updates:
"""This class computes and keeps track of updates and obsoletes.
- Previous message: [yum-cvs] yum/yum comps.py, 1.10.4.2, 1.10.4.3 depsolve.py, 1.105.2.2, 1.105.2.3 failover.py, 1.2.8.1, 1.2.8.2 mdparser.py, 1.5.4.1, 1.5.4.2 misc.py, 1.19.2.4, 1.19.2.5 packageSack.py, 1.18.2.4, 1.18.2.5 packages.py, 1.73.2.5, 1.73.2.6 pgpmsg.py, 1.5.4.1, 1.5.4.2 sqlitecache.py, 1.13.2.1, 1.13.2.2 update_md.py, 1.3.2.1, 1.3.2.2
- Next message: [yum-cvs] yum callback.py, 1.29.2.2, 1.29.2.3 cli.py, 1.241.2.6, 1.241.2.7 output.py, 1.72.2.3, 1.72.2.4 progress_meter.py, 1.3.6.2, 1.3.6.3 shell.py, 1.33.2.3, 1.33.2.4 yum-updatesd.py, 1.22.2.7, 1.22.2.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list