From 6f0b266ea91e48784d01b899b0ee6d41f6e8e476 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Sun, 21 Oct 2018 15:52:53 +0000 Subject: [PATCH] PycURL: try to fix the definition of pythonVersion for the buildbots. For some unknown reason the previous definition was not working on the build servers, although it was on my system. --- dev-python/pycurl/pycurl-7.43.0.2.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-python/pycurl/pycurl-7.43.0.2.recipe b/dev-python/pycurl/pycurl-7.43.0.2.recipe index b206a5bcd..cf96575e7 100644 --- a/dev-python/pycurl/pycurl-7.43.0.2.recipe +++ b/dev-python/pycurl/pycurl-7.43.0.2.recipe @@ -64,8 +64,8 @@ fi for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonLibSuffix=${PYTHON_LIBSUFFIXES[$i]} - pythonVersion="`$pythonPackage --version 2>&1 | sed -n \ - -e "s/Python \([0-9]*\.[0-9]*\)\..*/\1/p"`" + pythonVersion=`eval "$pythonPackage --version 2>&1" | sed -n \ + -e "1s/Python \([0-9]*\.[0-9]*\)\..*/\1/p"` PYTHON_VERSIONS+=($pythonVersion) eval "PROVIDES_${pythonPackage}=\"