forked from pool/cpuset
Accepting request 931534 from home:LPechacek:branches:hardware
Add a trivial, but still important, fix from upstream. (bsc#1191418) OBS-URL: https://build.opensuse.org/request/show/931534 OBS-URL: https://build.opensuse.org/package/show/hardware/cpuset?expand=0&rev=42
This commit is contained in:
parent
64e5e64f12
commit
cc20caeba9
23
cpuset-1.6-Fix_invalid_parentheses.patch
Normal file
23
cpuset-1.6-Fix_invalid_parentheses.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From a4b6b275d0a43d2794ab9e82922d3431aeea9903 Mon Sep 17 00:00:00 2001
|
||||
From: Markus <ekkwam@gmail.com>
|
||||
Date: Tue, 25 Aug 2020 18:56:34 +0300
|
||||
Subject: [PATCH] Fix invalid parentheses
|
||||
|
||||
Acked-by: Libor Pechacek <lpechacek@suse.com>
|
||||
---
|
||||
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
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 12 14:37:33 UTC 2021 - Libor Pechacek <lpechacek@suse.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user