← Back to team overview

openstack team mailing list archive

Re: [devstack] Easing maintenance of list of distro packages to install

 

Hi,

Le mercredi 20 juin 2012, à 11:24 +0100, Daniel P. Berrange a écrit :
> On Wed, Jun 20, 2012 at 12:06:46PM +0200, Vincent Untz wrote:
> > I'd like us to move to a new scheme where we have one list of packages
> > (say the Ubuntu one, for instance) and instead of adding another one
> > Fedora, openSUSE, etc., we have translation tables to map package names
> > from Ubuntu to other distros.
> > 
> > Supporting a new distro is then a matter of adding a translation table
> > (+ hacking the code to change the right config files, obviously), and we
> > can easily add tests to make sure the translation tables contain a
> > mapping for each package (and therefore fix the first issue).
> > 
> > I already have some working code for that, but I want to check if people
> > are fine with the idea before submitting it for review.
> 
> I've nothing against your proposal & certainly the motivation is
> good, but thought I'd throw out an alternative idea just in case
> 
> Instead of having one sub-dir per package/distro, just have a
> single (CSV/JSON/XML/whatever) file listing all distros in the
> same place

[...]

> The core idea is to have all the data, both the master list and
> distro mappings in one clear place.

It's indeed nice to have everything in one unique place, but it's more
cumbersome to parse from shell, while still allowing some specific
overrides for different versions of distros. But I'm happy to go that
way if it's the preferred one.

Cheers,

Vincent

-- 
Les gens heureux ne sont pas pressés.


References