mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
sysutils/iocage: Fixes for python 3.11
PR: 280219 Reported by: asomers Tested by: asomers
This commit is contained in:
parent
8adfe16381
commit
e15d19c28d
3 changed files with 23 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= iocage
|
PORTNAME= iocage
|
||||||
PORTVERSION= 1.2
|
PORTVERSION= 1.2
|
||||||
PORTREVISION= 12
|
PORTREVISION= 13
|
||||||
CATEGORIES= sysutils python
|
CATEGORIES= sysutils python
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
|
11
sysutils/iocage/files/patch-iocage__lib_ioc__common.py
Normal file
11
sysutils/iocage/files/patch-iocage__lib_ioc__common.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- iocage_lib/ioc_common.py.orig 2024-07-10 17:23:47 UTC
|
||||||
|
+++ iocage_lib/ioc_common.py
|
||||||
|
@@ -77,7 +77,7 @@ def callback(_log, callback_exception):
|
||||||
|
else:
|
||||||
|
if not isinstance(message, str) and isinstance(
|
||||||
|
message,
|
||||||
|
- collections.Iterable
|
||||||
|
+ collections.abc.Iterable
|
||||||
|
):
|
||||||
|
message = '\n'.join(message)
|
||||||
|
|
11
sysutils/iocage/files/patch-iocage__lib_ioc__exceptions.py
Normal file
11
sysutils/iocage/files/patch-iocage__lib_ioc__exceptions.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- iocage_lib/ioc_exceptions.py.orig 2024-07-10 17:22:46 UTC
|
||||||
|
+++ iocage_lib/ioc_exceptions.py
|
||||||
|
@@ -31,7 +31,7 @@ class ExceptionWithMsg(Exception):
|
||||||
|
def __init__(self, message):
|
||||||
|
if not isinstance(message, str) and not isinstance(
|
||||||
|
message,
|
||||||
|
- collections.Iterable
|
||||||
|
+ collections.abc.Iterable
|
||||||
|
):
|
||||||
|
message = [message]
|
||||||
|
|
Loading…
Add table
Reference in a new issue