pkg_prerm and pkg_postrm doesn't work. /usr/lib/python2.2/site-packages/portage.py has a bug which build target ebuild path incorrectly. This is a fix for it. Thanks, --- portage.py.orig Thu Aug 8 10:12:57 2002 +++ portage.py Thu Aug 15 11:16:01 2002 @@ -3206,7 +3206,7 @@ mystuff=listdir(self.dbdir) for x in mystuff: if x[-7:]==".ebuild": - myebuildpath=self.dbdir+"/"+x+".ebuild" + myebuildpath=self.dbdir+"/"+x break #do prerm script if myebuildpath and os.path.exists(myebuildpath):
OK, will be fixed in Portage 2.0.28. Thanks for the bug report!