Use libapt-pkg library to access package cache

Bug #1095173 reported by Dominique Lasserre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Depra
Fix Committed
Wishlist
Unassigned

Bug Description

Please directly use the APT library. This would make Depra more flexible to show package information (which information and how to display it).

summary: - Use of libapt-pkg library to access package cache
+ Use libapt-pkg library to access package cache
Changed in depra:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Christian Schärf (mysteryx) wrote :

I thought about the use of libapt-pkg before implementing the package information feature this way but I found no good idea how to do so because of the bad API documentation in libapt-pkg-doc.
Additionally, I plan to change the display of the fetched information so that they are better structured.
Any, I'll think again about libapt-pkg as well as I do with libgraphviz.

Changed in depra:
importance: Wishlist → Low
importance: Low → Wishlist
status: Triaged → In Progress
Revision history for this message
Christian Schärf (mysteryx) wrote :

Now, it's almost done as you proposed, but with LibQApt instead of libapt-pkg. The result is the same: Depra does not run debtree anymore!

Changed in depra:
status: In Progress → Fix Committed
Revision history for this message
Dominique Lasserre (lasall) wrote :

Thank you! (LibQApt uses libapt-pkg so it's basically as fast as possible.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.