Opened 13 years ago

Closed 10 years ago

#271 closed defect (fixed)

apt doesn't run preremove batch files

Reported by: jef Owned by: maphew
Priority: major Component: Package
Version: Keywords: apt
Cc:

Description

setup runs the etc/preremove batch files.

Change History (3)

comment:1 by maphew, 13 years ago

Owner: changed from osgeo4w-dev@… to maphew
Status: newassigned

you right, it doesn't; this is the first time I've heard of etc/preremove ;-) The only mention on trac aside from this issue is #47.

(reads, studies) Ahh, ok. It's for removing shortcuts and other files created during install and are not located inside the package archive.

Not knowing about preremove I'd handled the same problem in apt by parsing postinstall\*.bat for xxmklink and adding the created files into the installed files manifest (etc/setup/pkg-name.lst.gz) so they're automatically removed by the uninstall routine. (see def get_menu_links)

comment:2 by maphew, 13 years ago

r1183 adds running of etc/preremove/pkg-name.bat before uninstalling. Please test.

comment:3 by maphew, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.