summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorHyungGi Lee <hyunggi.lee@samsung.com>2015-12-30 11:00:06 +0900
committerDongkyun, Son <dongkyun.s@samsung.com>2016-01-09 18:47:47 +0900
commita3a0e0a7b31be5c6bbe1be4c62f2ce620f791825 (patch)
tree1fdc4e5d8a911793fb54e0320f0cfc8113774d39 /packaging
parent1353f214398cbd1f3cc04c7888d25077f3e458b6 (diff)
downloadqemu-accel-a3a0e0a7b31be5c6bbe1be4c62f2ce620f791825.tar.gz
qemu-accel-a3a0e0a7b31be5c6bbe1be4c62f2ce620f791825.tar.bz2
qemu-accel-a3a0e0a7b31be5c6bbe1be4c62f2ce620f791825.zip
change python_version check routine
Change-Id: Id50936196d559aaa3bfa9176ea580fe213f7c2a0 Signed-off-by: HyungGi Lee <hyunggi.lee@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/qemu-accel-aarch64.spec2
-rw-r--r--packaging/qemu-accel-armv7l.spec2
-rw-r--r--packaging/qemu-accel.spec2
3 files changed, 3 insertions, 3 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec
index 8dc1b5f..ab69736 100644
--- a/packaging/qemu-accel-aarch64.spec
+++ b/packaging/qemu-accel-aarch64.spec
@@ -83,7 +83,7 @@ This package is used in qemu-accel to accelerate python.
set +x
gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
-python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3`
+python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlopen by glibc
%ifarch %ix86
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index 6c2d99a..2ee1bbc 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -83,7 +83,7 @@ This package is used in qemu-accel to accelerate python.
set +x
gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
-python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3`
+python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlopen by glibc
%ifarch %ix86
diff --git a/packaging/qemu-accel.spec b/packaging/qemu-accel.spec
index ef32777..d11f57c 100644
--- a/packaging/qemu-accel.spec
+++ b/packaging/qemu-accel.spec
@@ -80,7 +80,7 @@ This package is used in qemu-accel to accelerate python.
set +x
gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
-python_version=`python --version |& sed -ne '1s/.* //p' | head -c 3`
+python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlopen by glibc
%ifarch %ix86