sysutils/iocage: Fixes for python 3.11

PR:		280219
Reported by:	asomers
Tested by:	asomers
This commit is contained in:
Michael Gmelin 2024-07-12 16:30:27 +02:00
parent 8adfe16381
commit e15d19c28d
3 changed files with 23 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= iocage
PORTVERSION= 1.2
PORTREVISION= 12
PORTREVISION= 13
CATEGORIES= sysutils python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View 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)

View 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]