RPM Community Forums

Mailing List Message of <rpm-devel>

Using --query --hdlist for distro/repo collection QA

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 06 Dec 2008 - 18:45:36 CET
Message-id: <B82AB25F-427A-4489-9806-3C69A8936185@mac.com>
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

	rpm -qaHT
will verify dependency closure and emit topologically sorted package  

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  
to detect dependency loops

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

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.


73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Sat Dec 6 18:46:03 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.