[projects/pld-builder.new] move python path to var and use it consistently; ver 1.90
atler
atler at pld-linux.org
Sun Aug 21 11:58:36 CEST 2022
commit 0954132a190c6303acc84d1b5891daa2d42a531c
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Aug 21 11:57:24 2022 +0200
move python path to var and use it consistently; ver 1.90
client/make-request.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 90c07f9..62294c9 100755
--- a/client/make-request.sh
+++ b/client/make-request.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# vim:noet:ts=4:sw=4
-VERSION=1.89
+VERSION=1.90
# prevent "*" from being expanded in builders var
set -f
@@ -20,8 +20,9 @@ verbose=no
autotag=no
requester_override=
relup=no
+python=/usr/bin/python3
-if [ -x /usr/bin/python ]; then
+if [ -x $python ]; then
send_mode="python"
else
echo "No python present, using mail mode"
@@ -101,7 +102,7 @@ send_request() {
;;
*)
msg "Sending using HTTP mode to $url"
- cat - | python3 -c '
+ cat - | $python -c '
import sys, socket
from urllib import request
@@ -606,7 +607,7 @@ esac
# need to do this after dist selection
if [ "$skip" ]; then
- skip=$(skip="$skip" control_url="$control_url" python3 -c '
+ skip=$(skip="$skip" control_url="$control_url" $python -c '
import sys
import gzip
import re
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/0954132a190c6303acc84d1b5891daa2d42a531c
More information about the pld-cvs-commit
mailing list