forked from pool/python-dmidecode
Accepting request 957140 from systemsmanagement:spacewalk
New package which we have in SLE already. OBS-URL: https://build.opensuse.org/request/show/957140 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=1
This commit is contained in:
20
31-version_info-v-version.patch
Normal file
20
31-version_info-v-version.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
From 3d656cd92a7b19758a17dfa47b4ce13da5b2bb61 Mon Sep 17 00:00:00 2001
|
||||
From: Stefano Rivera <stefano@rivera.za.net>
|
||||
Date: Fri, 19 Nov 2021 12:01:32 -0400
|
||||
Subject: [PATCH] Support Python 3.10's 2-digit minor version
|
||||
|
||||
---
|
||||
unit-tests/unit | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/unit-tests/unit
|
||||
+++ b/unit-tests/unit
|
||||
@@ -9,7 +9,7 @@ from getopt import getopt
|
||||
|
||||
# Setup temporary sys.path() with our build dir
|
||||
(sysname, nodename, release, version, machine) = os.uname()
|
||||
-pyver = sys.version[:3]
|
||||
+pyver = '%i.%i' % sys.version_info[:2]
|
||||
sys.path.insert(0,'../build/lib.%s-%s-%s' % (sysname.lower(), machine, pyver))
|
||||
|
||||
root_user = (os.getuid() == 0 and True or False)
|
||||
Reference in New Issue
Block a user