projg2 / eselect-repository

An eselect module to manage repos.conf (i.e. layman replacement)
20 stars 8 forks source link

DRAFT/WIP introduce "add recursive" feature #23

Closed Flowdalic closed 1 year ago

Flowdalic commented 1 year ago

When adding a new repository and add_recursive is not 'false', then then the eselect repository module will automatically add dependent repositories.

A repository can declare a dependency on another repository by specifying the dependent repository's name in its layout.conf 'master' value.

Fixes #20.

This is a RFC PR. The code is a prototype, but my first tests show that it works. I am glad about every comment.

mgorny commented 1 year ago

I don't like it at all. eselect-repository doesn't depend on Portage and — unless I'm missing something — doesn't have PM-specific code so far. This binds it to a specific PM and puts a lot of hacky logic just to avoid adding the necessary information where it belongs.