inspect: Abstract out db_dump code for listing RPM applications.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 14 Apr 2011 12:28:02 +0000 (13:28 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Apr 2011 21:09:33 +0000 (22:09 +0100)
commit0c1369f78b4a2276dcd004eb06cccf5c32e7f2da
treefbfd65682f7118444a5f1e9697fd846f4920a2c8
parent8e6e547af32116accfe4aa9cae36d3cd073f1c66
inspect: Abstract out db_dump code for listing RPM applications.

There are two changes here:

(1) The code for listing RPM applications ran db_dump and parsed the
output.  We abstract out that parsing code into a separate reusable
module (src/dbdump.c).

(2) The old db_dump parsing code used db_dump -p (printable) format.
Instead use db_dump -k (hex) format so we can read binary fields.
(cherry picked from commit a986e8dadb0c70634f6d1d89dd3e7bb5d9af3078)
po/POTFILES.in
src/Makefile.am
src/dbdump.c [new file with mode: 0644]
src/guestfs-internal.h
src/inspect_apps.c