Would be nice if one could depclean all but a few excluded packes
This works for me. How is an issue for you?
This is the current code: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8a3a72a4b1319acacb860abc59d3f9809c24619d
Strange, I could have sworn it didn't work but now I retested: emerge -a --depclean --exclude sys-kernel/vanilla-sources:4.14.27 and sys-kernel/vanilla-sources:4.14.27 was excluded so I guess I must have messed up, sorry