1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/Keywords/rmtry.ucl
Baptiste Daroussin 6feec0a337 Replace @rmtry shell implementation with a lua implementation
This way @rmtry is now rootdir friendly
It also allows cross installation (arm rootdir on amd64 host for example)

Reviewed by:	pormtgr (mat)
Differential Revision:	https://reviews.freebsd.org/D23618
2020-04-29 14:33:55 +00:00

10 lines
192 B
Plaintext

# $FreeBSD$
#
# MAINTAINER: portmgr@FreeBSD.org
actions: []
post-deinstall-lua: <<EOD
file = pkg.prefixed_path("%@")
-- ignore the return value and the error
ret, err = os.remove(file)
EOD