While on the subject of genhdlist and hdlist, here is functionality
@rpm5.org (and was mostly in rpm-4.4.2, but I don't know what damage
rpm.org has done to the rpmgi API code).

There is a -H,--hdlist modifier option to queries @rpm5.org that
is likely useful for QA on distro/repository level collections of
packages.

E.g.
        rpm -qaHT
will verify dependency closure and emit topologically sorted package names.

The -qaHT query uses this macro to specify the path to the hdlist
concatenated headers:
        #
        # Path for rpm -qH (default is /usr/share/comps/%{_arch}/hdlist)
        %_query_hdlist_path %{_datadir}/comps/%{_arch}/hdlist

Add -v (or use @rpm5.org where loops are always printed) if you also want
to detect dependency loops

Its rather easy to add a popt alias like --hdlistpath if one wants as well.

If the above functionalitty is desired in perl/python bindings, then the
rpmgi interface needs to be wrapped up, not rocket science at all.

Personally, I think that XML/YAML instead of concatenated (and modified, that
is the core problem) binary headers is a better approach to distro/repo
collection markup.

hth

73 de Jeff

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to