Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165881955
D26633.id77745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
444 B
Referenced Files
None
Subscribers
None
D26633.id77745.diff
View Options
Index: Keywords/rmempty.ucl
===================================================================
--- /dev/null
+++ Keywords/rmempty.ucl
@@ -0,0 +1,11 @@
+# $FreeBSD: head/Keywords/rmtry.ucl 533339 2020-04-29 14:33:55Z bapt $
+#
+# MAINTAINER: portmgr@FreeBSD.org
+actions: []
+pre-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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 11, 10:07 AM (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36436578
Default Alt Text
D26633.id77745.diff (444 B)
Attached To
Mode
D26633: Add @rmempty keyword
Attached
Detach File
Event Timeline
Log In to Comment