During env_update, raise a FileNotFound exception if a file is unexpectedly removed...
authorZac Medico <zmedico@gentoo.org>
Tue, 5 Sep 2006 20:30:04 +0000 (20:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Sep 2006 20:30:04 +0000 (20:30 -0000)
svn path=/main/trunk/; revision=4408

pym/portage.py

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