From e88e43c36c8d490dd82fbbb5d48808e7d008f0be Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 6 Dec 2008 20:54:55 +0000 Subject: [PATCH] fix backtrace on unmerge by preventing to unmerge the prefix offset path itself, thanks zmedico for the initial patch svn path=/main/branches/prefix/; revision=12171 --- pym/portage/dbapi/vartree.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index d67ad5c93..715e4a75d 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2895,6 +2895,9 @@ class dblink(object): mydirs.reverse() for obj in mydirs: + # don't try to unmerge the prefix offset itself + if len(obj) <= len(EPREFIX): + continue try: if bsd_chflags: lstatobj = os.lstat(obj) -- 2.26.2