packages: fix get_mirror function (put case in else statement)