freebsd-ports/Keywords/rmempty.ucl
Baptiste Daroussin c275c0a089 Remove the empty files during the post-deinstall procedure, to give a chance a deinstall
process to remove entries on the said file and maybe empty it
2020-10-22 12:46:48 +00:00

12 lines
223 B
Plaintext

# $FreeBSD$
#
# MAINTAINER: portmgr@FreeBSD.org
actions: []
post-deinstall-lua: <<EOD
file = pkg.prefixed_path("%@")
local st = pkg.stat(file)
if st and st.type == "reg" and st.size == 0 then
os.remove(file)
end
EOD