Ticket #954 (new enhancement)

Opened 10 years ago

Last modified 8 years ago

machtype -L should not use dpkg-query

Reported by: jdreed Owned by:
Priority: normal Milestone: Current Semester
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description

For the reasons noted in #778, machtype should not use dpkg-query. Now that #848 is in development, we can do this better. My plan (currently implemented in login-graphical) is to ship a "metapackage.installed" file for each package in /var/lib/debathena/metapackages. Then machtype can just look there to see what's installed. The downside is that if debathena-cluster is in a half-installed state or something, this new machtype will report the wrong answer, whereas the current one would report a lower metapackage.

If we decide not to implement this ticket, someone should delete trunk/debathena/meta/login-graphical/debian/debathena-login-graphical.installed and trunk/debathena/meta/login-graphical/debian/debathena-login-graphical.install

Change History

comment:1 Changed 8 years ago by jdreed

I wonder if the Right(tm) way to do this is to have machtype provide a trigger, and have our metapackages be consumers of the trigger. When a metapackage is installed, the trigger writes out a file and then machtype reads that file.

Note: See TracTickets for help on using tickets.