Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 226419

Summary: devmanual pkg_postinst doc doesn't match portage behaviour anymore
Product: Documentation Reporter: Santiago M. Mola (RETIRED) <coldwind>
Component: DevmanualAssignee: Gentoo Quality Assurance Team <qa>
Status: RESOLVED FIXED    
Severity: normal CC: dev-portage, juantxorena
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://devmanual.gentoo.org/ebuild-writing/functions/pkg_postinst/index.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 226505    

Description Santiago M. Mola (RETIRED) gentoo-dev 2008-06-13 20:26:00 UTC
"Sample pkg_postinst" and "Common pkg_postinst Tasks" suggest using has_version in pkg_postinst in order to detect upgraded. This does not work anymore with >=portage-2.1.5 since it runs pkg_postinst after the old version have been removed.
Comment 1 juantxorena@gmail.com 2008-12-19 20:40:58 UTC
This doesn't seem that hard to fix, and is a blocker for portage-2.1.6.1. Do somebody need any help with this?
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2008-12-22 22:48:58 UTC
Juan,

A patch will make this happen a lot quicker.  http://devmanual.gentoo.org/appendices/contributing/
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2009-01-01 20:59:48 UTC
Sending        trunk/ebuild-writing/functions/pkg_postinst/text.xml
Transmitting file data .
Committed revision 136.


Let me know if I misrepresented anything in the new version.