scripts/download.pl: fix mirrors regression for curl and wget
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 25 Sep 2022 19:43:43 +0000 (21:43 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 26 Sep 2022 18:50:09 +0000 (20:50 +0200)
commit5df60f5c24e40fc373178427a6b654826edbe885
tree7a24774c38b25dede0f34e6806b6e082536af846
parent582c098c0936b7f2083541017ef88921bf6d281b
scripts/download.pl: fix mirrors regression for curl and wget

With the introduction of aria2c support, curl and wget no longer try to
download the file from mirrors. Fix this regression by emptying the
remaining mirrors list only when aria2c is used.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/download.pl