From 25d23593b4fa78f7e9694498ef71bca13acdb061 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Sep 2009 03:32:30 +0000 Subject: [PATCH] Bug #240656 - Unmerge broken symlinks where a directory was expected. (merged from branches/prefix r14248) svn path=/main/trunk/; revision=14250 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index da7426880..284d5ff1f 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2481,7 +2481,7 @@ class dblink(object): continue if pkgfiles[objkey][0] == "dir": - if statobj is None or not stat.S_ISDIR(statobj.st_mode): + if lstatobj is None or not stat.S_ISDIR(lstatobj.st_mode): show_unmerge("---", unmerge_desc["!dir"], file_type, obj) continue mydirs.append(obj) -- 2.26.2