diff --git a/cpuset-1.6-Fix_invalid_parentheses.patch b/cpuset-1.6-Fix_invalid_parentheses.patch new file mode 100644 index 0000000..6853fa1 --- /dev/null +++ b/cpuset-1.6-Fix_invalid_parentheses.patch @@ -0,0 +1,23 @@ +From a4b6b275d0a43d2794ab9e82922d3431aeea9903 Mon Sep 17 00:00:00 2001 +From: Markus +Date: Tue, 25 Aug 2020 18:56:34 +0300 +Subject: [PATCH] Fix invalid parentheses + +Acked-by: Libor Pechacek +--- + cpuset/commands/set.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cpuset/commands/set.py b/cpuset/commands/set.py +index c71f37f..7d0d382 100644 +--- a/cpuset/commands/set.py ++++ b/cpuset/commands/set.py +@@ -484,7 +484,7 @@ def set_details(name, indent=None, width=None, usehex=False): + if width != 0 and len(tst) > width: + target = width - len(out) + patha = set.path[:len(set.path)//2-3] +- pathb = set.path[len(set.path//2):] ++ pathb = set.path[len(set.path)//2:] + patha = patha[:target//2-3] + pathb = pathb[-target//2:] + out += patha + '...' + pathb diff --git a/cpuset.changes b/cpuset.changes index f94a79a..a825fc4 100644 --- a/cpuset.changes +++ b/cpuset.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 12 14:37:33 UTC 2021 - Libor Pechacek + +- Add cpuset-1.6-Fix_invalid_parentheses.patch to fix + a semantic error. (bsc#1191418) + ------------------------------------------------------------------- Tue Dec 11 10:59:55 UTC 2018 - Jan Engelhardt diff --git a/cpuset.spec b/cpuset.spec index 8967a43..47c5af7 100644 --- a/cpuset.spec +++ b/cpuset.spec @@ -1,7 +1,7 @@ # # spec file for package cpuset # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2008-2011 Novell, Inc. Waltham, MA, USA # # All modifications and additions to the file contributed by third parties @@ -33,8 +33,9 @@ Release: 0 Summary: Cpuset manipulation tool License: GPL-2.0-only Group: System/Management -Url: https://github.com/lpechacek/cpuset +URL: https://github.com/lpechacek/cpuset Source: https://github.com/lpechacek/cpuset/archive/v%{version}.tar.gz +Patch0: cpuset-1.6-Fix_invalid_parentheses.patch BuildRequires: %{pyver}-setuptools Requires: %{pyver}-future @@ -47,6 +48,7 @@ shielding setup. %prep %setup -q +%autopatch -p1 %build %{pyver} setup.py build