public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r11260 - main/trunk/pym/portage
@ 2008-07-29 10:30 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-07-29 10:30 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-07-29 10:29:59 +0000 (Tue, 29 Jul 2008)
New Revision: 11260

Modified:
   main/trunk/pym/portage/util.py
Log:
In apply_recursive_permissions(), ignore InvalidLocation exceptions such as
FileNotFound and DirectoryNotFound since sometimes things disappear, like
when adjusting permissions on DISTCC_DIR.


Modified: main/trunk/pym/portage/util.py
===================================================================
--- main/trunk/pym/portage/util.py	2008-07-29 07:15:22 UTC (rev 11259)
+++ main/trunk/pym/portage/util.py	2008-07-29 10:29:59 UTC (rev 11260)
@@ -800,8 +800,12 @@
 				if not applied:
 					all_applied = False
 			except PortageException, e:
-				all_applied = False
-				onerror(e)
+				# Ignore InvalidLocation exceptions such as FileNotFound
+				# and DirectoryNotFound since sometimes things disappear,
+				# like when adjusting permissions on DISTCC_DIR.
+				if not isinstance(e, portage.exception.InvalidLocation):
+					all_applied = False
+					onerror(e)
 	return all_applied
 
 def apply_secpass_permissions(filename, uid=-1, gid=-1, mode=-1, mask=-1,




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-29 10:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 10:30 [gentoo-commits] portage r11260 - main/trunk/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox