Allow env_update to work if there are broken symlinks in /etc/env.d/. See bug #146412.
authorZac Medico <zmedico@gentoo.org>
Wed, 6 Sep 2006 17:04:36 +0000 (17:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Sep 2006 17:04:36 +0000 (17:04 -0000)
svn path=/main/trunk/; revision=4416

pym/portage.py

index f94870b8705a5b8ce9eb19429f0e0c0d41d2c395..ef6f32c9cce99c28af27bb7483f9919b0a182582 100644 (file)
@@ -501,8 +501,9 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None):
                        del e
                        continue
                if myconfig is None:
-                       # file removed by a concurrent process
-                       raise portage_exception.FileNotFound(file_path)
+                       # broken symlink or file removed by a concurrent process
+                       writemsg("!!! File Not Found: '%s'\n" % file_path, noiselevel=-1)
+                       continue
                # process PATH, CLASSPATH, LDPATH
                for myspec in specials.keys():
                        if myconfig.has_key(myspec):