Hacked the code from ffum and just added the extra step of replacing the old mirror with the new in /etc/apt/sources.list
This package assumes that your previous mirror information is at the top of sources.list, beginning with the very first line. Like this:
sudo npm install -g ufum
ufum