--- ../../portage-2.0.51-r3.orig/pym/portage.py 2004-11-13 12:40:41.786784168 +0900 +++ portage.py 2004-11-13 12:42:53.777718496 +0900 @@ -6548,7 +6548,7 @@ # install of destination is blocked by an existing directory with the same name moveme=0 print "!!!",mydest - elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])): + elif stat.S_ISREG(mydmode) or (os.path.exists(mydest) and stat.S_ISLNK(mydmode) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])): cfgprot=0 # install of destination is blocked by an existing regular file; # now, config file management may come into play.