python3-ubus: update to 0.1.3

Bump to version 0.1.3 and drop patch, which is in upstream.

Signed-off-by: Erik Larsson <who+github@cnackers.org>
This commit is contained in:
Erik Larsson
2026-04-26 21:18:25 +02:00
committed by Josef Schlehofer
parent bf50291ab1
commit fee669b6d4
2 changed files with 3 additions and 24 deletions
+3 -3
View File
@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=python-ubus PKG_NAME:=python-ubus
PKG_VERSION:=0.1.2 PKG_VERSION:=0.1.3
PKG_RELEASE:=2 PKG_RELEASE:=1
PYPI_NAME:=ubus PYPI_NAME:=ubus
PKG_HASH:=4dc4ef0fbcc8abb7a2354691475a58ff3eb015f1bab3150750729f7f657dd440 PKG_HASH:=e737ae171b38836c26bc3e50e9c468afd47d9cc8bc01f33a5b569a05e1d8567f
PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org> PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org>
PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE:=LGPL-2.1-or-later
@@ -1,21 +0,0 @@
From e76b4f915c80d0fdfdd6602593b1f7bd7e078c3b Mon Sep 17 00:00:00 2001
From: Stepan Henek <stepan.henek@nic.cz>
Date: Thu, 5 Mar 2026 12:38:21 +0100
Subject: [PATCH] make project compatible with python3.13
---
ubus_python.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/ubus_python.c
+++ b/ubus_python.c
@@ -1078,7 +1078,8 @@ static PyObject *ubus_python_add(PyObjec
if (PyList_Append(python_alloc_list, methods)) {
ubus_remove_object(ctx, &object->object);
free_ubus_object(object);
- PyEval_CallMethod(python_alloc_list, "pop", "");
+ PyObject *_pop_result = PyObject_CallMethod(python_alloc_list, "pop", NULL);
+ Py_XDECREF(_pop_result);
return NULL;
}