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
This commit is contained in:
Baptiste Daroussin 2020-10-22 12:46:48 +00:00
parent 3d3f13729b
commit c275c0a089
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552967

View File

@ -2,7 +2,7 @@
#
# MAINTAINER: portmgr@FreeBSD.org
actions: []
pre-deinstall-lua: <<EOD
post-deinstall-lua: <<EOD
file = pkg.prefixed_path("%@")
local st = pkg.stat(file)
if st and st.type == "reg" and st.size == 0 then