Same as #234, but uses download function from portmod/repo/download.py (so progress bar works) and handles incorrect links. Implements #104.
download
portmod/repo/download.py
I still didn't implement nxm handlers. Probably, i will do it with next MR. Don't think it'll take too long.