svn path=/main/branches/2.1.2/; revision=5770
myc.close()
null_byte = "\0"
contents_file = os.path.join(self.dbdir, "CONTENTS")
- pos=1
+ pos = 0
for line in mylines:
+ pos += 1
if null_byte in line:
# Null bytes are a common indication of corruption.
writemsg("!!! Null byte found in contents " + \
return None
except (KeyError,IndexError):
print "portage: CONTENTS line",pos,"corrupt!"
- pos += 1
self.contentscache=pkgfiles
return pkgfiles