diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pym/portage.py b/pym/portage.py index 0a9186b5a..4c574b3f0 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5780,13 +5780,11 @@ class dblink: mymd5 = None try: mymd5 = portage_checksum.perform_md5(obj, calc_prelink=1) - except (OSError,IOError), e: - if e.errno == errno.ENOENT: - # the file has disappeared between now and our stat call - writemsg_stdout("--- !obj %s %s\n" % ("obj", obj)) - continue - else: - raise e + except portage_exception.FileNotFound, e: + # the file has disappeared between now and our stat call + writemsg_stdout("--- !obj %s %s\n" % ("obj", obj)) + continue + # string.lower is needed because db entries used to be in upper-case. The # string.lower allows for backwards compatibility. if mymd5 != string.lower(pkgfiles[objkey][2]): |