libdnf
libdnf copied to clipboard
[RFE] Expose sack references
There are several objects (DnfPackage
, DnfReldepList
, DnfReldep
) that internally hold a reference to the DnfSack
to which they belong, but don't expose API for getting this information; instead, the library user has to keep track of this information themselves which can get pretty hairy. It would be great if there were dnf_{package,reldeplist,reldep}_get_sack
functions to make this less painful.
I just noticed that dnf_package_get_sack
is actually defined in hy-package.cpp
, but it's exposed in neither hy-package.h
nor dnf-package.h
.
We're currently planning a new major version of the dnf stack (libdnf including). I'll add your request on the list.
This should be already addressed in dnf5. Closing this one.