Skip to content

Commit

Permalink
wheel.mk: Use bash variable += syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Dec 18, 2021
1 parent 0b5440c commit 9681e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/spksrc.wheel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ download_wheel:
while IFS= read -r requirement ; \
do \
query="curl -s https://pypi.org/pypi/$${requirement%%=*}/json" ; \
query="$${query} | jq -r '.releases[][] | select(.packagetype==\"sdist\") | select(.filename|test(\"-" ; \
query="$${query}$${requirement##*=}.tar.gz\")) | .url'" ; \
query+=" | jq -r '.releases[][] | select(.packagetype==\"sdist\") | select(.filename|test(\"-" ; \
query+="$${requirement##*=}.tar.gz\")) | .url'" ; \
localFile=$$(basename $$(eval $${query})) ; \
echo "wget --secure-protocol=TLSv1_2 -nv -O $(DISTRIB_DIR)/$${localFile}.part -nc $$(eval $${query})" ; \
wget --secure-protocol=TLSv1_2 -nv -O $(DISTRIB_DIR)/$${localFile}.part -nc $$(eval $${query}) ; \
Expand Down

0 comments on commit 9681e98

Please sign in to comment.