Hey, this is done already. Downloading packages includes downloading the corresponding SRPMs, even for Live Media.
/me, from his cell -----Oorspronkelijk bericht ----- Van: "Jonathan Steffan" <[EMAIL PROTECTED]> Aan: fedora-livecd-list@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@redhat.com https://www.redhat.com/mailman/listinfo/fedora-livecd-list -- Fedora-livecd-list mailing list Fedora-livecd-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-livecd-list