diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-11-11 14:27:03 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-11-11 15:20:42 +0100 |
commit | 9e3f90935bb6dbf135581e849c2dce271db8956d (patch) | |
tree | 46b64abcbbd6797aa2330dbb52a85051c8de0087 | |
parent | 11038a892ada9af914c4e0a0de2951fa105b14af (diff) | |
download | ptxdist-9e3f90935bb6dbf135581e849c2dce271db8956d.tar.gz ptxdist-9e3f90935bb6dbf135581e849c2dce271db8956d.tar.xz |
rules: ptx/mirror-pypi: avoid calling a shell
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/pre/mirror.make | 4 |
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 |