summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/pre/mirror.make4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/pre/mirror.make b/rules/pre/mirror.make
index 66eaf1b36..20814bbfc 100644
--- a/rules/pre/mirror.make
+++ b/rules/pre/mirror.make
@@ -8,6 +8,8 @@
ptx/mirror = $(foreach mirror,$(PTXCONF_SETUP_$(strip $(1))MIRROR),$(mirror)/$(strip $(2)))
-ptx/mirror-pypi = $(foreach mirror, $(call ptx/mirror,PYPI,$(shell echo $(1) | head -c1)/$(strip $(1))/$(strip $(2))),$(mirror))
+_chars = a b c d e f g h i j k l m n e p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
+ptx/mirror-pypi-chars = $(strip $(foreach c,$(_chars),$(if $(filter $(c)%,$(1)),$(c))))
+ptx/mirror-pypi = $(foreach mirror, $(call ptx/mirror,PYPI,$(call ptx/mirror-pypi-chars,$(1))/$(strip $(1))/$(strip $(2))),$(mirror))
# vim: syntax=make