[elbe-devel] [PATCH v2 4/4] elbeproject: Pass other components to mk_source_cdrom

Olivier Dion dion at linutronix.de
Mon May 11 00:22:10 CEST 2020


On Sat, 09 May 2020, Olivier Dion <dion at linutronix.de> wrote:
> On Fri, 08 May 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
>
>>>                  try:
>>>                      self.repo_images += mk_source_cdrom(env.rfs,
>>>                                                          self.arch,
>>> @@ -486,7 +519,8 @@ class ElbeProject (object):
>>>                                                          init_codename,
>>>                                                          self.builddir,
>>>                                                          cdrom_size=cdrom_size,
>>> -                                                        xml=self.xml)
>>> +                                                        xml=self.xml,
>>> +                                                        others=others)
>>
>> now you have others here. 
>> I dont really see them very different from env.rfs 
>>
>> Please try to generalize this, so that the others and env.rfs could be
>> part of the same dict/list
>>
>> Maybe pass in a list of BuildEnv or something ?
>
> Alright, let's pass a dictionnary of the form { "component": dsc_lst }.
> Packages will be downloaded before the call to mk_source_cdrom using the
> correct BuildEnv.
>
> However, this requires to pass the mirror explicitly.

After though, this is a bad idea since it would requires to move the
forbiden packages filtering outside of mk_source_cdrom too.

My current solution passes a dictionnary of the form -
[ component-name : (rfs, cache, pkg_lst)].

-- 
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen



More information about the elbe-devel mailing list