Port 1999cc4e from ManaVerse: "deduplicate repeating retries"
Honestly, why do we even need retries?
There's retry.sh used by downloadlib.sh to wrap wget, should I use this new retry function or look into replacing retry.sh with wget's own retry functionality?
Edited by Fedja Beader