From: Fabian Groffen Date: Sat, 6 Dec 2008 20:54:55 +0000 (-0000) Subject: fix backtrace on unmerge by preventing to unmerge the prefix offset path itself,... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e88e43c36c8d490dd82fbbb5d48808e7d008f0be;p=portage.git 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 --- 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)