Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
check if a download is successfull before deciding not to try the nex… #609
the problem this fixes for me is: when I specify
where server1 and server2 could e..g be a public github.com and a private github enterprise,
I could see more cases where it would be beneficial to try a second location if it exists, if the first download fails. Since, we have a second location, why not?
backwards compatibility: I don't believe a lot of work-flows would rely on the fact that an installation won't happen if the first tried link doesn't work, because this first tried link seems to be random. Depending on a few factors the first or second link will be tried first or last.
This does check if the download path exists, so if downloaders are downloading something that does not result in an existing path this could break their behaviour, but what is a download if it doesn't result in a valid path?