Page MenuHomeFreeBSD

D23618.diff
No OneTemporary

D23618.diff

Index: head/Keywords/rmtry.ucl
===================================================================
--- head/Keywords/rmtry.ucl
+++ head/Keywords/rmtry.ucl
@@ -2,10 +2,8 @@
#
# MAINTAINER: portmgr@FreeBSD.org
actions: []
-post-deinstall: <<EOD
- case "%@" in
- /*) f="%@" ;;
- *) f="%D/%@" ;;
- esac
- /bin/rm -f ${PKG_ROOTDIR}/$f 2>/dev/null || /usr/bin/true
+post-deinstall-lua: <<EOD
+ file = pkg.prefixed_path("%@")
+ -- ignore the return value and the error
+ ret, err = os.remove(file)
EOD

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 2, 11:11 PM (4 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30738603
Default Alt Text
D23618.diff (500 B)

Event Timeline