Code Listing 2.1: Optimize/cleanup idiom has pkg_postinst() twice, think the second one should be pkg_postrm().
Thanks, the fix is in CVS.