[MacPorts] #45396: shared-mime-info @1.3 update-mime-database output is not removed on deactivate
MacPorts
noreply at macports.org
Tue Sep 13 22:24:25 UTC 2022
#45396: shared-mime-info @1.3 update-mime-database output is not removed on
deactivate
-------------------------------+----------------------
Reporter: bgilbert | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: shared-mime-info |
-------------------------------+----------------------
Comment (by RJVB):
Replying to [comment:8 RJVB]:
> The question now is what has to be deleted. Obviously I cannot just
remove all of $prefix/share/mime, but is there anything other than
$prefix/share/mime/packages that needs to remain?
Does this look correct?
{{{
post-deactivate {
# cleanup
foreach f [glob -nocomplain ${prefix}/share/mime/*] {
if {${f} ne "${prefix}/share/mime/packages"} {
ui_debug "file delete -force ${f}"
}
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/45396#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list