libdnf icon indicating copy to clipboard operation
libdnf copied to clipboard

[RFE] Expose sack references

Open Bob131 opened this issue 5 years ago • 2 comments

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.

Bob131 avatar Oct 15 '19 17:10 Bob131

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.

Bob131 avatar Oct 16 '19 14:10 Bob131

We're currently planning a new major version of the dnf stack (libdnf including). I'll add your request on the list.

dmach avatar Oct 17 '19 12:10 dmach

This should be already addressed in dnf5. Closing this one.

jan-kolarik avatar Feb 12 '24 15:02 jan-kolarik