Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6493 - prerm/postrm doesn't work
Summary: prerm/postrm doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-14 21:17 UTC by YAMAKURA Makoto
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description YAMAKURA Makoto 2002-08-14 21:17:23 UTC
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):
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-08-16 23:15:48 UTC
OK, will be fixed in Portage 2.0.28.  Thanks for the bug report!