BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003644 [BusyBox] Documentation feature always 06-04-08 21:17 06-21-08 15:47
Reporter wz2b View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0003644: Add script support to dpkg documentation
Description From looking at the source it appears that dpkg supports the prerm, postrm, preinst, postinst scripts. Busybox does not, however, call these scripts with the parameters explained by the policy manual. This is OK, as long as the scripts have some "default" behavior.

It may be helpful to explain that these scripts are not called with the standard arguments one would expect by examining the debian policy manual. A simple DPKG.TXT file would be sufficient.




Additional Information The policy manual defines what scripts get called when and with what arguments. I realize that busybox does not support all of these scenarios, but it does support some of them; it does not, however, send any parameters to dpkg.c/run_package_script(). As such, I found a number of my own packages to fail to remove.

Here are the scripts, and

preinst install
preinst install <old_version>
preinst upgrade <old_version>
preinst abort_upgrade <new_version>

postinst configure <most_recent_version>
postinst abort-upgade <new_version>
postinst abort-remove
postinst abort-remove in-favour <package> <version>
postinst abort-deconfigure in-favor <failed_install_package> removing <conflicting_package> <version>

prerm remove
prerm upgrade <new_version>
prerm failed-upgrade <old_version>
prerm remove in-favor <package> <new_version>
prerm deconfigure in-favour <package> <version> removing <package> <version>


postrm remove
postrm purge
postrm upgrade <new_version>
postrm failed-upgrade <old_version>
postrm abort-install
postrm abort-install <old_version>
postrm abort-upgrade <old_version>
postrm disappear <overwriter> <version>




Attached Files

- Relationships

- Notes
(0008404)
vda
06-21-08 15:47

Your comments are added to dpkg.c in rev.22466. Thanks!
 

- Issue History
Date Modified Username Field Change
06-04-08 21:17 wz2b New Issue
06-04-08 21:17 wz2b Status new => assigned
06-04-08 21:17 wz2b Assigned To  => BusyBox
06-21-08 15:47 vda Status assigned => closed
06-21-08 15:47 vda Note Added: 0008404
06-21-08 15:47 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker