fix import of utilist
This commit is contained in:
parent
acd3aceaaf
commit
b36e814a7b
31
backport-Fix-import-of-utilist.patch
Normal file
31
backport-Fix-import-of-utilist.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 208b963455fa5ff658b24e513639f27ef66920ce Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Kacur <jkacur@redhat.com>
|
||||||
|
Date: Wed, 2 Sep 2020 09:32:30 +0800
|
||||||
|
Subject: [PATCH] Fix import of utilist
|
||||||
|
|
||||||
|
reason:If procfs/utilist.py is not in your PYTHONPATH, the import can fail.
|
||||||
|
Specify it fully.
|
||||||
|
|
||||||
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
||||||
|
|
||||||
|
https://kernel.googlesource.com/pub/scm/libs/python/python-linux-procfs/python-linux-procfs/+/208b963455fa5ff658b24e513639f27ef66920ce%5E%21/
|
||||||
|
---
|
||||||
|
procfs/procfs.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/procfs/procfs.py b/procfs/procfs.py
|
||||||
|
index a586ae2..3cfa941 100755
|
||||||
|
--- a/procfs/procfs.py
|
||||||
|
+++ b/procfs/procfs.py
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
import os, time
|
||||||
|
from functools import reduce
|
||||||
|
from six.moves import range
|
||||||
|
-from utilist import bitmasklist
|
||||||
|
+from procfs.utilist import bitmasklist
|
||||||
|
import platform
|
||||||
|
import re
|
||||||
|
|
||||||
|
--
|
||||||
|
2.19.1
|
||||||
|
|
||||||
@ -3,7 +3,7 @@ Python classes to extract information from the Linux kernel /proc files.
|
|||||||
|
|
||||||
Name: python-linux-procfs
|
Name: python-linux-procfs
|
||||||
Version: 0.6.2
|
Version: 0.6.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Linux /proc abstraction classes
|
Summary: Linux /proc abstraction classes
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
||||||
@ -12,6 +12,8 @@ BuildArch: noarch
|
|||||||
BuildRequires: python2-devel python2-setuptools
|
BuildRequires: python2-devel python2-setuptools
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
|
Patch0: backport-Fix-import-of-utilist.patch
|
||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python2-linux-procfs
|
%package -n python2-linux-procfs
|
||||||
@ -56,6 +58,9 @@ Requires: python3-six
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 02 2020 xinghe <xinghe1@huawei.com> - 0.6.2-2
|
||||||
|
- fix import of utilist
|
||||||
|
|
||||||
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.6.2-1
|
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.6.2-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user