Don't swallow unknown exceptions from lstat() during the merge phase.
authorZac Medico <zmedico@gentoo.org>
Thu, 13 Jul 2006 02:22:22 +0000 (02:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 13 Jul 2006 02:22:22 +0000 (02:22 -0000)
svn path=/main/trunk/; revision=3839

pym/portage.py

index 703c905c6b6e68c97a3571ce1f837e468c5de1ff..c36b9ef6e59f814da81c16cffc2e32e56e0582f2 100644 (file)
@@ -6484,10 +6484,11 @@ class dblink:
                        # handy variables; mydest is the target object on the live filesystems;
                        # mysrc is the source object in the temporary install dir
                        try:
-                               mydmode=os.lstat(mydest)[stat.ST_MODE]
-                       except SystemExit, e:
-                               raise
-                       except:
+                               mydmode = os.lstat(mydest).st_mode
+                       except OSError, e:
+                               if e.errno != errno.ENOENT:
+                                       raise
+                               del e
                                #dest file doesn't exist
                                mydmode=None