Add some additional error handling for OperationNotPermitted and ReadOnlyFileSystem...
authorZac Medico <zmedico@gentoo.org>
Fri, 26 May 2006 04:08:50 +0000 (04:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 May 2006 04:08:50 +0000 (04:08 -0000)
svn path=/main/trunk/; revision=3418

pym/portage.py

index 761e14ed8aa3c7c0b101fa82f99e28a18786b5a7..ff4ab93034fab1f737ecea1d99fe11517b9cc19e 100644 (file)
@@ -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"]})