summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-23 11:09:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-23 11:09:45 +0000
commitd5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b (patch)
treeaed1e3ec8976a4ee4ba222ac419ec992065e9391
parentcfe5e7bc23c30dc40b90c1f61282d8f59430840a (diff)
downloadportage-d5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b.tar.gz
portage-d5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b.tar.bz2
portage-d5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b.zip
s/OSError/EnvironmentError/ since shutil.move() generally raises an IOError.
svn path=/main/trunk/; revision=6969
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index c52fcb3b3..b15cede57 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -310,7 +310,7 @@ class vardbapi(dbapi):
try:
shutil.move(os.path.join(newpath, old_pf + ".ebuild"),
os.path.join(newpath, new_pf + ".ebuild"))
- except OSError, e:
+ except EnvironmentError, e:
if e.errno != errno.ENOENT:
raise
del e