You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Package implementation must be changed. It's good that alpm_pkg_load is the only function that return a alpm_pkg_t which must owned but it can't be free automatically via Drop. In fact the common usage is to load a local tarball and then to install it. In the case of a successful install it must not be freed, otherwise it must be freed.
What I would do:
implement alpm_pkg_load in Transaction in a function which load a tarball and add the returned package to install, this way the package can freed manually in case of failure.
rename PackageRef as Package for name consistency.
maybe implement Package as Db with a struct keeping a reference to a alpm_pkg_t
The text was updated successfully, but these errors were encountered:
Quoted
The Package implementation must be changed. It's good that alpm_pkg_load is the only function that return a alpm_pkg_t which must owned but it can't be free automatically via Drop. In fact the common usage is to load a local tarball and then to install it. In the case of a successful install it must not be freed, otherwise it must be freed.
What I would do:
The text was updated successfully, but these errors were encountered: