From 37fd032ad2e31f718bd8f3e72dddeb435bad9d4e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 18 Jun 2014 12:05:53 +0200 Subject: [PATCH] xbps-triggers: invoke correct python version with pycompile_module. --- srcpkgs/xbps-triggers/files/pycompile | 8 ++++---- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/pycompile b/srcpkgs/xbps-triggers/files/pycompile index 7e69816f62c..556bc628800 100755 --- a/srcpkgs/xbps-triggers/files/pycompile +++ b/srcpkgs/xbps-triggers/files/pycompile @@ -46,14 +46,14 @@ compile() 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 - python -m compileall -f -q \ + python${pycompile_version} -m compileall -f -q \ usr/lib/python${pycompile_version}/site-packages/${f} && \ - python -O -m compileall -f -q \ + python${pycompile_version} -O -m compileall -f -q \ usr/lib/python${pycompile_version}/site-packages/${f} else - python -m compileall -f -q \ + python${pycompile_version} -m compileall -f -q \ usr/lib/python${pycompile_version}/site-packages/${f} && \ - python -O -m compileall -f -q \ + python${pycompile_version} -O -m compileall -f -q \ usr/lib/python${pycompile_version}/site-packages/${f} fi done diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 36de3473f19..f289024cd60 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.78 +version=0.79 revision=1 noarch=yes bootstrap=yes