From d1c090502f4989108474f55cef95b000b53876cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Cestm=C3=ADr=20Kalina?= Date: Mon, 18 Nov 2024 16:19:06 +0100 Subject: [PATCH] utils: fix invalid escape sequence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: https://issues.redhat.com/browse/RHEL-65759 Signed-off-by: Čestmír Kalina --- 0003-cs-fix-invalid-escape.patch | 11 +++++++++++ ksc.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 0003-cs-fix-invalid-escape.patch diff --git a/0003-cs-fix-invalid-escape.patch b/0003-cs-fix-invalid-escape.patch new file mode 100644 index 0000000..cbb8f5e --- /dev/null +++ b/0003-cs-fix-invalid-escape.patch @@ -0,0 +1,11 @@ +--- a/utils.py ++++ b/utils.py +@@ -126,7 +126,7 @@ + print('This tool needs to run on Red Hat Enterprise Linux') + return None + for rel in release: +- if re.match("\d.\d+",rel): ++ if re.match(r"\d+.\d+",rel): + return rel + print('This tool needs to run on Red Hat Enterprise Linux') + return None diff --git a/ksc.spec b/ksc.spec index c5a2d2b..a5d0636 100644 --- a/ksc.spec +++ b/ksc.spec @@ -8,7 +8,7 @@ Name: ksc Version: 1.12 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Kernel source code checker Group: Development/Tools AutoReqProv: no @@ -24,6 +24,7 @@ BuildRequires: python3-setuptools Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0: 0001-manpage.patch Patch1: 0002-c9s-notifications.patch +Patch2: 0003-cs-fix-invalid-escape.patch %description A kernel module source code checker to find usage of select symbols @@ -35,6 +36,7 @@ A kernel module source code checker to find usage of select symbols sed -i "15i packages=[]," setup.py %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %py3_build @@ -53,6 +55,9 @@ install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1 %{python3_sitelib}/ksc-%{version}*.egg-info %changelog +* Mon Nov 18 2024 Čestmír Kalina - 1.12-7 +- Resolves: RHEL-65759 + * Tue Oct 29 2024 Troy Dawson - Packaging variables read or set by %forgemeta - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018