From 9ce99265fd0947564ca48e1d4e1cfed2f40711c3 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Mon, 27 Jan 2020 13:29:41 +0100 Subject: [PATCH] brp-python-bytecompile: Prepare for 2 digit minor versions (e.g. 3.10) --- brp-python-bytecompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brp-python-bytecompile b/brp-python-bytecompile index ed1563b..4727feb 100755 --- a/brp-python-bytecompile +++ b/brp-python-bytecompile @@ -90,7 +90,7 @@ fi # and below /usr/lib/python3.1/, we're targeting /usr/bin/python3.1 shopt -s nullglob -for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]$"`; +for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`; do python_binary=/usr/bin/$(basename $python_libdir) real_libdir=${python_libdir/$RPM_BUILD_ROOT/}