diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-27 09:52:33 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-27 09:52:33 -0700 |
commit | a3f3d939562f8d2ef822a1002311ae6c05e93c78 (patch) | |
tree | b02f127cd7d7063386c5b49e7f52ed198004c11b | |
parent | 75fd8c33b5401e25105a7fb4248b478504012f90 (diff) | |
download | portage-a3f3d939562f8d2ef822a1002311ae6c05e93c78.tar.gz portage-a3f3d939562f8d2ef822a1002311ae6c05e93c78.tar.bz2 portage-a3f3d939562f8d2ef822a1002311ae6c05e93c78.zip |
Bug #334817 - Make genconfig() warn about EISDIR instead of raising
a IOError.
-rw-r--r-- | pym/portage/util/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 279a12137..98ad7c205 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -424,7 +424,8 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True): raise PermissionDenied(mycfg) if e.errno != errno.ENOENT: writemsg("open('%s', 'r'): %s\n" % (mycfg, e), noiselevel=-1) - raise + if e.errno not in (errno.EISDIR,): + raise return None try: if tolerant: |