projg2 / eselect-repository

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

feature request: Disable overlay, but keep it synced #21

Open flyser opened 1 year ago

flyser commented 1 year ago

One feature I am missing after migration from layman is the possibility to have overlays automatically synced, but not "visible" for portage. This allowed me to switch between multiple repositories that offered the same ebuilds but with varying quality or recency. It also allowed me to pick only some ebuilds from an otherwise too large overlay by simply symlinking it to my personal overlay. It seems like there is no way to achieve this with eselect-repository right now, am I right?

mgorny commented 1 year ago

Syncing is done by the PM, so I don't think so right now. You'd have to start by requesting a way for Portage to ignore a repository while syncing it.

mgorny commented 1 year ago

That said, I think it's a reasonable idea and shouldn't be that hard to implement but somebody will have to do it. I'd suggest adding a visible boolean key that defaults to true, and modifying the code reading repos.conf to default to returning only visible repositories, and having a switch to return all repositories for use in syncing code.