summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Greco <pablo@fliagreco.com.ar>2019-01-15 06:44:09 -0300
committerLaura Abbott <labbott@redhat.com>2019-01-16 17:16:21 -0800
commit6eaa39e231125e37289a411d3faaecda6eca8986 (patch)
tree03eb7397fac4574b1872e88179bf8124be48d2bb
parent15c042d2f4ac4746673099a4d242c329bf010878 (diff)
downloadkernel-6eaa39e231125e37289a411d3faaecda6eca8986.tar.gz
kernel-6eaa39e231125e37289a411d3faaecda6eca8986.tar.xz
kernel-6eaa39e231125e37289a411d3faaecda6eca8986.zip
Don't require python3 for a string replace
-rw-r--r--kernel.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel.spec b/kernel.spec
index 80f6c0660..654c7ee4b 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1225,7 +1225,7 @@ BuildKernel() {
# make sure EXTRAVERSION says what we want it to say
# Trim the release if this is a CI build, since KERNELVERSION is limited to 64 characters
- ShortRel=$(python3 -c "import re; print(re.sub(r'\.pr\.[0-9A-Fa-f]{32}', '', '%{release}'))")
+ ShortRel=$(perl -e "print \"%{release}\" =~ s/\.pr\.[0-9A-Fa-f]{32}//r")
perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -${ShortRel}.%{_target_cpu}${Flav}/" Makefile
# if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme