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.
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