the last ._cfg* file happens to be a broken symlink. Thanks to bonsaikitten
for reporting.
svn path=/main/trunk/; revision=9677
old_pfile = normalize_path(os.path.join(real_dirname, last_pfile))
if last_pfile and newmd5:
import portage.checksum
- if portage.checksum.perform_md5(
- os.path.join(real_dirname, last_pfile)) == newmd5:
- return old_pfile
+ try:
+ last_pfile_md5 = portage.checksum.perform_md5(
+ os.path.join(real_dirname, last_pfile))
+ except FileNotFound:
+ # The file suddenly disappeared or it's a broken symlink.
+ pass
+ else:
+ if last_pfile_md5 == newmd5:
+ return old_pfile
return new_pfile
def getlibpaths():