diff options
author | biao716.wang <biao716.wang@samsung.com> | 2023-03-03 16:51:24 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2023-03-10 14:38:18 +0900 |
commit | e806b67f7bf4458450f5d951262ec0aedf7a4a19 (patch) | |
tree | 84575a6945b414287b654aede757583d59d9856e /python/rpmfd-py.c | |
parent | a0dea826f88a4c5c9ceb722592cceedeb75a32fe (diff) | |
download | librpm-tizen-e806b67f7bf4458450f5d951262ec0aedf7a4a19.tar.gz librpm-tizen-e806b67f7bf4458450f5d951262ec0aedf7a4a19.tar.bz2 librpm-tizen-e806b67f7bf4458450f5d951262ec0aedf7a4a19.zip |
Fix build error with Ubuntu22.04tizen/4.11.0.1.tizen20231101
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: I67a51ee893d06173b3d33d444dfa56a5796523fb
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'python/rpmfd-py.c')
-rw-r--r-- | python/rpmfd-py.c | 2 |
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); |