FS#48950 - {pyalpm} Incorrect binding due to wrong libalpm document

Attached to Project: Arch Linux
Opened by Yichao Yu (yuyichao) - Thursday, 14 April 2016, 17:44 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 11 January 2020, 20:25 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Jelle van der Waa (jelly)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I've recently developed a Julia binding for libalpm[1] and I used the doc of libalpm and the python binding as reference design. However I've noticed that there are many cases where the document is incorrect. Two of the most important ones (there are other places where the doc is unclear but pyalpm seems to get it right)

1. The returned list of `alpm_trans_prepare` and `alpm_trans_commit` are not always of the same type. They can have different types depending on the error code returned. (As a result, for example, installing package that triggers a invalid arch error segfault pyalpm).
2. `alpm_pkg_get_deltas` returns a list of `alpm_delta_t` not a list of string. This shouldn't cause segfault but will make the return info useless.

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

[1] https://github.com/yuyichao/LibALPM.jl
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 11 January 2020, 20:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in latest pyalpm release
Comment by Jelle van der Waa (jelly) - Sunday, 12 May 2019, 11:12 GMT
2. is resolved by removing it. Since it's deprecated in pacman-git.

Loading...