[packages/rpm-build-tools/merge-pld-builder-client: 205/2675] - note why mail mode is used

glen glen at pld-linux.org
Mon Dec 19 22:00:15 CET 2016


commit 8e073871973eb46b5ee9a486db1f461b3cfb79cf
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Jun 21 11:48:14 2011 +0000

    - note why mail mode is used
    
    Changed files:
        client/make-request.sh -> 1.95

 make-request.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/make-request.sh b/make-request.sh
index bcb1eb7..780d9b0 100644
--- a/make-request.sh
+++ b/make-request.sh
@@ -16,7 +16,12 @@ url=
 no_depend=no
 verbose=no
 
-[ -x /usr/bin/python ] && send_mode="python" || send_mode="mail"
+if [ -x /usr/bin/python ]; then
+	send_mode="python"
+else
+	echo "No python present, using mail mode"
+	send_mode="mail"
+fi
 
 if [ -n "$HOME_ETC" ]; then
 	USER_CFG=$HOME_ETC/.requestrc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd



More information about the pld-cvs-commit mailing list