summaryrefslogtreecommitdiff
path: root/Keywords/rmempty.ucl
blob: 1aa77df37f3f3a5f5e5e21803aa5d5533f266ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
# $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