[Rpm-maint] [PATCH 0/2] Exposing the rpm source headers

Panu Matilainen pmatilai at laiskiainen.org
Tue Oct 12 08:06:33 UTC 2010


On Sun, 10 Oct 2010, Eric W. Biederman wrote:

>
> I have a python program that automates the installation of dependencies
> for source packages and so far the only reasonable way to do this
> appears to be to use the source rpm headers to get the build
> dependencies of the sources.

Yup, you're by no means the first to want this. The reason why the source 
header hasn't been exported to python so far was basically that I've been 
thinking of making the source part appear as a Package struct too, and 
didn't want to export an interface that might change shortly. But 
faking up a package struct has its own issues and is not a terribly clean 
solution either (at least without other significant changes). So...

There will always be a source header involved, whether it's a direct 
member of rpmSpec struct or not. So the new interface shouldn't cause any 
problems even if the internals change, especially now that the spec is 
opaque to outside.

> The following patches clearly export the sourceHeader so it is
> usable in a general purpose manner for applications that would
> like to use it.

Applied, thanks for the patches.

 	- Panu -



More information about the Rpm-maint mailing list