[Fedora-livecd-list] SRPMS for installed RPMs?

Jeroen van Meeuwen kanarip at kanarip.com
Tue Aug 14 08:53:54 UTC 2007


Jeroen Van Meeuwen wrote:
> Hey, this is done already. Downloading packages includes downloading the corresponding SRPMs, even for Live Media.
> 
> /me, from his cell
> 

That's a very short note not telling anyone how to get Revisor to also
include source.

In the model config, set getsource=1 (or True)

Revisor, when having downloaded the RPMs, will list the repositories
that were enabled, search for it's %s-source equivalent, enable that
repository, and build a packageSack based on the src arch alone, then
iterate over all tsInfo.getMembers() and download their src arch
equivalents.

Those SRPMs will end up in a tree similar to how Fedora distributed it's
SRPMs.

This should all magically work in 2.0.4.2-1.fc7 (although I might have
fixed a few tracebacks since then -these would only occur if the
%s-source repo doesn't exist or yum fails building a pkgSack from it).

Kind regards,

Jeroen van Meeuwen
-kanarip

> -----Oorspronkelijk bericht -----
> Van: "Jonathan Steffan" <jonathansteffan at gmail.com>
> Aan: fedora-livecd-list at redhat.com
> Verzonden: 07-08-13 22:25
> Onderwerp: Re: [Fedora-livecd-list] SRPMS for installed RPMs?
> 
> On Mon, 2007-08-13 at 22:11 -0500, Matt Domsch wrote:
>> I want to be sure, for license compliance, that all the binary bits on
>> the final LiveCD have corresponding source code available.
>>
>> One of the "features" I'd like to see something in the stack of
>> livecd-tools produce is a CD/DVD/whatever of the SRPMS that match the
>> RPMs that go into the LiveCD.  Smooge and I have both done this
>> ourselves, with varying degrees of ease, essentially querying all the
>> installed RPMs on the LiveCD after-the-fact and generating the list,
>> then grabbing the files etc.  All very manual.  I expect there's a
>> better way, and I'm even open to helping code it, but am looking for
>> direction from you - those who know the tools best...
> 
> We can just use the same concept that pungi uses. The revisor team is
> actually working on this and when we have progress we'll let the list
> know. If anyone wants to just get it done, please do.
> 
>     def getSRPMList(self):
>         """Cycle through the list of package objects and
>            find the sourcerpm for them.  Requires yum still
>            configured and a list of package objects"""
> 
> 
>         for po in self.polist:
>             srpm = po.sourcerpm.split('.src.rpm')[0]
>             if not srpm in self.srpmlist:
>                 self.srpmlist.append(srpm)
> 
> Start reading at line 327
> of /usr/lib/python2.5/site-packages/pypungi/gather.py:
> 
>     def downloadSRPMs(self):
>         """Cycle through the list of srpms and
>            find the package objects for them, Then download them."""
>     [...]
> 
> Jonathan Steffan
> 
> 
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-livecd-list
> 
> 
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-livecd-list




More information about the Fedora-livecd-list mailing list