Repopulate ~/.netrc auth.
Avoid breaking crappy distribution methods.
Better layout for checking.
Merge pull request #1893 from Lukasa/license

Avoid breaking crappy distribution methods.
Respect trust_env on redirect.
Merge pull request #1892 from Lukasa/netrcauth

Repopulate ~/.netrc auth.
cleanup shitty code
who did this
omg never do this again ever please
what is wrong with you people? :)