Verified Commit ed24eb34 authored by lilydjwg lilydjwg's avatar lilydjwg lilydjwg Committed by Jelle van der Waa
Browse files

pyalpm_package_from_pmpkg requires an additional argument

this prevents deallocation of packages from transaction.to_remove to segfault.

Fixes: FS#71312
parent 4a82e51a
......@@ -247,7 +247,7 @@ static PyObject *pyalpm_trans_get_add(PyObject *self, void *closure)
if (flags == -1) RET_ERR("no transaction defined", alpm_errno(handle), NULL);
to_add = alpm_trans_get_add(handle);
return alpmlist_to_pylist(to_add, pyalpm_package_from_pmpkg);
return alpmlist_to_pylist2(to_add, pyalpm_package_from_pmpkg, NULL);
}
static PyObject *pyalpm_trans_get_remove(PyObject *self, void *closure)
......@@ -259,7 +259,7 @@ static PyObject *pyalpm_trans_get_remove(PyObject *self, void *closure)
if (flags == -1) RET_ERR("no transaction defined", alpm_errno(handle), NULL);
to_remove = alpm_trans_get_remove(handle);
return alpmlist_to_pylist(to_remove, pyalpm_package_from_pmpkg);
return alpmlist_to_pylist2(to_remove, pyalpm_package_from_pmpkg, NULL);
}
/** Transaction flow */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment