From 7b05c318d30e03b9568fa36e76a174a2c850b9a9 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 22 Jun 2015 19:33:10 +0200 Subject: [PATCH] xbps-triggers: update to 0.101. --- srcpkgs/xbps-triggers/files/binfmts | 7 +++++-- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/binfmts b/srcpkgs/xbps-triggers/files/binfmts index 596e0c5d10..16919833a8 100755 --- a/srcpkgs/xbps-triggers/files/binfmts +++ b/srcpkgs/xbps-triggers/files/binfmts @@ -29,14 +29,16 @@ run) case "$TARGET" in post-install) - echo "${binfmts}" | while read line; do + echo "$binfmts" | tr '\' '&' 2> /dev/null | while read line; do + line=$(echo $line | tr '&' '\' 2> /dev/null) set -- ${line} _bin="$1"; shift; _args="$@"; _bname="$(basename ${_bin})" update-binfmts --package ${PKGNAME} --install ${_bname} ${_bin} ${_args} done ;; pre-remove) - echo "${binfmts}" | while read line; do + echo "$binfmts" | tr '\' '&' 2> /dev/null | while read line; do + line=$(echo $line | tr '&' '\' 2> /dev/null) set -- ${line} _bin="$1"; shift; _args="$@"; _bname="$(basename ${_bin})" if [ -f /var/lib/binfmts/${_bname} ]; then @@ -56,3 +58,4 @@ esac exit 0 # end +# end diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index c52d5517db..827fa3553c 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.100 +version=0.101 revision=1 noarch=yes bootstrap=yes