summaryrefslogtreecommitdiff
path: root/python/rpmfd-py.c
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2022-11-04 10:22:37 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-03-03 16:36:46 +0900
commit5a8c0b62b2711e067cc3263c9d828f1157a4d14d (patch)
tree84575a6945b414287b654aede757583d59d9856e /python/rpmfd-py.c
parenta0dea826f88a4c5c9ceb722592cceedeb75a32fe (diff)
downloadlibrpm-tizen-5a8c0b62b2711e067cc3263c9d828f1157a4d14d.tar.gz
librpm-tizen-5a8c0b62b2711e067cc3263c9d828f1157a4d14d.tar.bz2
librpm-tizen-5a8c0b62b2711e067cc3263c9d828f1157a4d14d.zip
fix build error with Ubuntu22.04sandbox/wangbiao/py3_version
Python bindings: The initialization function must be named PyInit_name(), where name is the name of the module, and should be the only non-static item defined in the module file https://github.com/rpm-software-management/rpm/commit/0073376965ee8d8df63c21b0da634fc315c97d0b related bug: https://bugzilla.redhat.com/show_bug.cgi?id=1064758 Add more patch: https://github.com/rpm-software-management/rpm/commit/f3801bccb9eb068a747ca63a4b01518a260d9919 https://github.com/rpm-software-management/rpm/commit/ddc7ff28e14064f57c6917e133a95e73f749cf41 https://github.com/rpm-software-management/rpm/commit/2c6e0366ffc6bdbafbdf82df7fcedd975a361465 https://github.com/rpm-software-management/rpm/commit/71527b6fbd2b3898beabd602c462a01b691d67d8 Change-Id: I1421de99d3931f11861d476aa30710c828144193 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'python/rpmfd-py.c')
-rw-r--r--python/rpmfd-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c
index 79eb5b6ee..41f494108 100644
--- a/python/rpmfd-py.c
+++ b/python/rpmfd-py.c
@@ -230,7 +230,7 @@ static PyObject *rpmfd_read(rpmfdObject *s, PyObject *args, PyObject *kwds)
if (nb > 0) {
PyObject *tmp = PyBytes_FromStringAndSize(buf, nb);
- PyString_ConcatAndDel(&res, tmp);
+ PyBytes_ConcatAndDel(&res, tmp);
left -= nb;
}
} while (nb > 0);