From f9b924b5a70ca7a23a6ede212cc8f7f11469919a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 27 Oct 2016 15:31:36 +0200 Subject: [PATCH] xbps-triggers: quote path in pycompile trigger --- srcpkgs/xbps-triggers/files/pycompile | 2 +- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/pycompile b/srcpkgs/xbps-triggers/files/pycompile index 339d230fe29..9d1da900b46 100755 --- a/srcpkgs/xbps-triggers/files/pycompile +++ b/srcpkgs/xbps-triggers/files/pycompile @@ -52,7 +52,7 @@ compile() done for f in ${pycompile_module}; do echo "Byte-compiling python${pycompile_version} code for module ${f}..." - if [ -d usr/lib/python${pycompile_version}/site-packages/${f} ]; then + if [ -d "usr/lib/python${pycompile_version}/site-packages/${f}" ]; then python${pycompile_version} -m compileall -f -q \ usr/lib/python${pycompile_version}/site-packages/${f} && \ python${pycompile_version} -O -m compileall -f -q \ diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 0b34a77d0d9..71c2bd2de95 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,7 +1,7 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers version=0.102 -revision=2 +revision=3 noarch=yes bootstrap=yes short_desc="The XBPS triggers for Void Linux"