Bug 449 - dpkg postrm script deleted before it can run
Summary: dpkg postrm script deleted before it can run
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-10 14:30 UTC by James Juran
Modified: 2009-08-09 21:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
fix (1.19 KB, patch)
2009-07-10 14:30 UTC, James Juran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Juran 2009-07-10 14:30:31 UTC
Created attachment 451 [details]
fix

When purging a package (dpkg -P), the postrm script is deleted before it has a chance to run.  The attached patch excludes the postrm script from the initial deletion and then deletes it after the script has run.  This problem was identified and initially patched by my colleague John Ata.
Comment 1 Denys Vlasenko 2009-07-25 09:53:09 UTC
Thanks, committed to git. Please test it.