Browse Source

Fix map filter usage with urlsplit

As urlsplit is filter as well, so we need to quote it for applying
to all items. Otherwise 'urlsplit' undefined variable error is raised.

Change-Id: Ie4a51b177fb7f8e28c8c7dfb080960d6734ee21f
Related-Bug: #1820830
Co-Authored-By: Nicolas Bock <nicolasbock@gmail.com>
changes/56/645556/2
Dmitriy Rabotjagov 3 months ago
parent
commit
e14e33328a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tasks/repo_build_wheels.yml

+ 2
- 2
tasks/repo_build_wheels.yml View File

@@ -50,7 +50,7 @@
50 50
     --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
51 51
     {% if repo_build_pip_extra_indexes is defined %}
52 52
     --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
53
-    --trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }}
53
+    --trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
54 54
     {% endif %}
55 55
     --requirement {{ repo_build_release_path }}/requirements.txt
56 56
     {{ pip_install_options }}
@@ -75,7 +75,7 @@
75 75
     --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
76 76
     {% if repo_build_pip_extra_indexes is defined %}
77 77
     --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
78
-    --trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }}
78
+    --trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
79 79
     {% endif %}
80 80
     --build {{ repo_build_dir }}
81 81
     --requirement {{ repo_build_release_path }}/requirements.txt

Loading…
Cancel
Save