summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-26 04:08:50 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-26 04:08:50 +0000
commit2d380bdb907c749da48efe544ae7db81b5d2a719 (patch)
tree13f96efdc38d21124b1302992d473fc133ac791b
parent061bfd16ebe338601493702c255ca562450732ed (diff)
downloadportage-2d380bdb907c749da48efe544ae7db81b5d2a719.tar.gz
portage-2d380bdb907c749da48efe544ae7db81b5d2a719.tar.bz2
portage-2d380bdb907c749da48efe544ae7db81b5d2a719.zip
Add some additional error handling for OperationNotPermitted and ReadOnlyFileSystem exceptions (bug #112612).
svn path=/main/trunk/; revision=3418
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 761e14ed8..ff4ab9303 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1928,6 +1928,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
mode=0664, mask=02)
except portage_exception.FileNotFound:
pass
+ except portage_exception.PortageException, e:
+ writemsg("%s\n" % str(e), noiselevel=-1)
except (OSError,IOError),e:
# file does not exist
writemsg(_("!!! %(file)s not found in %(dir)s\n") % {"file":myfile, "dir":mysettings["DISTDIR"]})