When emerge --sync is given repo arguments, and sync-type is not set for any of those repos, then emerge returns exit code 0 though it doesn't sync anything: https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/emaint/modules/sync/sync.py?h=v2.2.27#n178
What should be the behavior when doing emerge --sync (or emaint sync -a) and no auto-sync repos are defined (for whatever reason)? Exit with success or failure?
(In reply to Alexandru Elisei from comment #1) > What should be the behavior when doing emerge --sync (or emaint sync -a) and > no auto-sync repos are defined (for whatever reason)? Exit with success or > failure? Let's exit with success in that case.
Fixed in portage-2.3.4, and portage-2.3.5 is stable now. https://gitweb.gentoo.org/proj/portage.git/commit/?id=79103f99799c9365389290e812213c46e006c019