summaryrefslogtreecommitdiffstats
path: root/bin/chkcontents
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-12 08:19:46 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-12 08:19:46 +0000
commitd8bfca254d38cdfe8d193583d2ec7eb590528433 (patch)
tree20b2d7dd38b7756b6a8bcbdc40e896620edd7005 /bin/chkcontents
parent544952b129dbb7cd0a0e9ab323c2e89c1b4060c9 (diff)
downloadportage-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.gz
portage-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.bz2
portage-d8bfca254d38cdfe8d193583d2ec7eb590528433.zip
More String deprecation
svn path=/main/trunk/; revision=5597
Diffstat (limited to 'bin/chkcontents')
-rwxr-xr-xbin/chkcontents8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/chkcontents b/bin/chkcontents
index aae45c6bc..8be51782d 100755
--- a/bin/chkcontents
+++ b/bin/chkcontents
@@ -8,7 +8,7 @@
# actual programs on the system (and makes sure that symlinks point to
# the right files).
-import string, os.path, os, sys
+import os.path, os, sys
try:
import portage
except ImportError:
@@ -23,7 +23,7 @@ def CONTENTScheck(path):
sys.exit(1)
lines = contents.readlines()
for line in lines:
- items = string.split(line)
+ items = line.split()
# items is a list w/ size depending on the type of item listed in item[0]
# if items[0] = 'dir' then items[1] is the path of a directory
# if items[0] = 'obj' then items[1] is the path of a file,
@@ -34,9 +34,9 @@ def CONTENTScheck(path):
# items[3] is the file the symlink should point to
# items[4] is the symlink mtime
if (items[0] == 'obj'):
- md5stored = string.lower(items[2])
+ md5stored = items[2].lower()
# fchksum.fmdft(file) returns the file's md5sum and the file's size
- md5real = string.lower(portage.perform_checksum(items[1])[0])
+ md5real = portage.perform_checksum(items[1])[0].lower()
if (md5stored != md5real):
if md5real:
print "%s has md5sum of %s instead of %s" % (items[1], md5real, md5stored)