more elegant result check on add repositories