Skip main-repo warn if PORTDIR unset, bug #470006