aboutsummaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2020-05-01 19:39:26 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2020-05-01 19:39:26 +0000
commit26db5bddb5b8248f40279747e3a69177813d8967 (patch)
tree49e73c685dc349600c9920a50cd5911def19e563 /Keywords
parentebbdc799f841e59246f259bc1163ab35acdf5b31 (diff)
downloadports-26db5bddb5b8248f40279747e3a69177813d8967.tar.gz
ports-26db5bddb5b8248f40279747e3a69177813d8967.zip
Revert r533339, there is a regression in ordering
With hat: portmgr PR: 246102
Notes
Notes: svn path=/head/; revision=533583
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/rmtry.ucl10
1 files changed, 6 insertions, 4 deletions
diff --git a/Keywords/rmtry.ucl b/Keywords/rmtry.ucl
index 9785ffd697eb..93b27db4449c 100644
--- a/Keywords/rmtry.ucl
+++ b/Keywords/rmtry.ucl
@@ -2,8 +2,10 @@
#
# MAINTAINER: portmgr@FreeBSD.org
actions: []
-post-deinstall-lua: <<EOD
- file = pkg.prefixed_path("%@")
- -- ignore the return value and the error
- ret, err = os.remove(file)
+post-deinstall: <<EOD
+ case "%@" in
+ /*) f="%@" ;;
+ *) f="%D/%@" ;;
+ esac
+ /bin/rm -f ${PKG_ROOTDIR}/$f 2>/dev/null || /usr/bin/true
EOD