This code should support repo aliases:
What happens if the repo is specified multiple times? Like this:
# emerge --sync gentoo gentoo
Right now emerge throws a cryptic error:
The specified repos were not found:
which is the wrong error. There's only one repo (with the name gentoo), and the list of repos will have one less repo than match_repos, and emerge will think that a repo wasn't found:
The same situation can happen if a repo has multiple aliases and we give more than one of them as arguments to sync.
I am thinking we should simply deal with this situation instead of throwing an error.
(In reply to Alexandru Elisei from comment #1)
> I am thinking we should simply deal with this situation instead of throwing
> an error.
Yeah, let's discard duplicates. For each repo, add the un-aliased name to set, then ignore any remaining arguments that have the same un-aliased name.
This is in the master branch:
Updated emerge man page:
Fixed in portage-2.3.5.