summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-openstackclient
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2025-12-14 07:22:20 +0000
committerSergei Trofimovich <slyich@gmail.com>2025-12-14 07:22:20 +0000
commit23236b331d061aa07dc328c706b1b22fd95b27db (patch)
treea4ec69530269ed04c446e539b28088ca525e7e64 /pkgs/development/python-modules/python-openstackclient
parent0b7f9782007bce4a7a7adc4c22999582dddc60d1 (diff)
fetchurl: fix handling of fallback URLs
Without the change fallback to `urls = []` does not work as `$urls` evaluates on ony first entry. Use `${urls[@]}` instead. Example derivation that is fixed in `master` is `xterm.src`: Before: $ nix build --no-link -f. xterm.src --rebuild -L xterm> structuredAttrs is enabled ... xterm> trying ftp://ftp.invisible-island.net/xterm/xterm-403.tgz ... xterm> curl: (67) Access denied: 550 xterm> error: cannot download xterm-403.tgz from any mirror After: $ nix build --no-link -f. xterm.src --rebuild -L xterm> structuredAttrs is enabled ... xterm> trying ftp://ftp.invisible-island.net/xterm/xterm-403.tgz ... xterm> curl: (67) Access denied: 550 ... xterm> trying https://invisible-mirror.net/archives/xterm/xterm-403.tgz xterm> % Total % Received % Xferd Average Speed Time Time Time Current xterm> Dload Upload Total Spent Left Speed xterm> 100 1577k 100 1577k 0 0 703670 0 0:00:02 0:00:02 --:--:-- 703866
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
0 files changed, 0 insertions, 0 deletions