summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 07:18:20 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 07:18:20 +0000
commit17079869db26782cf536f076c4f5239874193157 (patch)
treefc210993fc181158e203ad8fe84aca204c1eadef
parentSupport profiles.desc from overlays. (trunk r13359) (diff)
downloadportage-multirepo-17079869db26782cf536f076c4f5239874193157.tar.gz
portage-multirepo-17079869db26782cf536f076c4f5239874193157.tar.bz2
portage-multirepo-17079869db26782cf536f076c4f5239874193157.zip
Handle IOError from codecs.open(). (trunk r13360)
svn path=/main/branches/2.1.6/; revision=13516
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index df677513..cce3f9a9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -589,7 +589,7 @@ for path in portdb.porttrees:
desc_path = os.path.join(path, 'profiles', 'profiles.desc')
try:
desc_file = codecs.open(desc_path, mode='r', errors='replace')
- except OSError:
+ except EnvironmentError:
pass
else:
for i, x in enumerate(desc_file):