diff options
Diffstat (limited to 'Keywords/rmtry.ucl')
-rw-r--r-- | Keywords/rmtry.ucl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Keywords/rmtry.ucl b/Keywords/rmtry.ucl index 93b27db4449c..9785ffd697eb 100644 --- a/Keywords/rmtry.ucl +++ b/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 |