Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226419 - devmanual pkg_postinst doc doesn't match portage behaviour anymore
Summary: devmanual pkg_postinst doc doesn't match portage behaviour anymore
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Devmanual (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Quality Assurance Team
URL: http://devmanual.gentoo.org/ebuild-wr...
Whiteboard:
Keywords:
Depends on:
Blocks: 226505
  Show dependency tree
 
Reported: 2008-06-13 20:26 UTC by Santiago M. Mola (RETIRED)
Modified: 2009-01-01 20:59 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 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.