From 38ab9edcb86df7c2ab057013e40c7389c6c51b70 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Jul 2011 13:16:34 -0700 Subject: [PATCH] unmerge: fix false alarm about protected symlinks The error message about preserved symlinks, from commit 4bb08136f073024c5d31dceb1618b6f4e7246369, should only be triggered in cases when the package being unmerged has the given path listed as a symlink in its CONTENTS. --- 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 e85e0b85a..6317af756 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2030,7 +2030,7 @@ class dblink(object): is_owned = True break - if is_owned and \ + if file_type == "sym" and is_owned and \ (islink and statobj and stat.S_ISDIR(statobj.st_mode)): # A new instance of this package claims the file, so # don't unmerge it. If the file is symlink to a -- 2.26.2