fixed possible --devel double ignored warning
factorized ignorepkgs warning code