summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-09 20:31:50 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-09 20:31:50 +0000
commit2cea761d00a6460fce680cfd7f7bece2e138e569 (patch)
tree5eeae9fd52ca40aa7564244770d4f035725c34fb /bin/emaint
parentWrap common write_atomic exceptions for easier error handling. (diff)
downloadportage-multirepo-2cea761d00a6460fce680cfd7f7bece2e138e569.tar.gz
portage-multirepo-2cea761d00a6460fce680cfd7f7bece2e138e569.tar.bz2
portage-multirepo-2cea761d00a6460fce680cfd7f7bece2e138e569.zip
Update error handling for write_atomic calls to use PortageException.
svn path=/main/trunk/; revision=3823
Diffstat (limited to 'bin/emaint')
-rwxr-xr-xbin/emaint4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/emaint b/bin/emaint
index 472656bc..4bf27e6a 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -7,7 +7,7 @@ from optparse import OptionParser, OptionValueError
import re
-import os, portage, portage_const
+import os, portage, portage_const, portage_exception
class WorldHandler(object):
def name():
@@ -42,7 +42,7 @@ class WorldHandler(object):
errors = []
try:
portage.write_atomic(self.world_file, "\n".join(self.okay))
- except OSError:
+ except portage_exception.PortageException:
errors.append(self.world_file + " could not be opened for writing")
return errors