diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-16 14:13:45 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-16 14:13:45 -0700 |
commit | 5b8fdc7d3e4c64ce79d0218fd101f8292602d10b (patch) | |
tree | 8ef92dddf94c3fc01011b0384c82f4b4b4119cf2 /pym/portage/dbapi/porttree.py | |
parent | 1272f5c55baa5c6d68d5ab3a1dceef69cc47e69b (diff) | |
download | portage-5b8fdc7d3e4c64ce79d0218fd101f8292602d10b.tar.gz portage-5b8fdc7d3e4c64ce79d0218fd101f8292602d10b.tar.bz2 portage-5b8fdc7d3e4c64ce79d0218fd101f8292602d10b.zip |
hashed_path: convert stat OSError to FileNotFound
This makes it consistent with perform_checksum call which also raises
FileNotFound instead of OSError.
Diffstat (limited to 'pym/portage/dbapi/porttree.py')
-rw-r--r-- | pym/portage/dbapi/porttree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 0ade59a19..a0b7d7e1f 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -424,7 +424,7 @@ class portdbapi(dbapi): # snag mtime since we use it later, and to trigger stat failure # if it doesn't exist ebuild_hash.mtime - except OSError: + except FileNotFound: writemsg(_("!!! aux_get(): ebuild for " \ "'%s' does not exist at:\n") % (cpv,), noiselevel=-1) writemsg("!!! %s\n" % ebuild_path, noiselevel=-1) |