Opened 10 years ago

Closed 7 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 Changed 10 years ago by maphew

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 Changed 10 years ago by maphew

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

comment:3 Changed 7 years ago by maphew

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