[packages/rpm-build-tools/merge-pld-builder-client: 261/2675] - colors for build mode

glen glen at pld-linux.org
Mon Dec 19 22:02:41 CET 2016


commit aa51be8e252e510038e795dcc3683043fa7e16ef
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Jun 17 14:35:30 2012 +0000

    - colors for build mode
    
    Changed files:
        client/make-request.sh -> 1.105

 make-request.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/make-request.sh b/make-request.sh
index 98423db..35b94f9 100755
--- a/make-request.sh
+++ b/make-request.sh
@@ -664,12 +664,18 @@ gen_req() {
 		msg "Using jobs $jobs"
 		echo "	<maxjobs>$jobs</maxjobs>"
 	fi
-	msg "Build mode: $build_mode"
 	if [ -z "$url" ]; then
 		msg "Using email $builder_email"
 	else
 		msg "Using URL $url"
 	fi
+
+	if [ "$build_mode" = "ready" ]; then
+		msg "Build mode: $(tput setaf 2)$build_mode$c_norm"
+	else
+		msg "Build mode: $(tput setaf 3)$build_mode$c_norm"
+	fi
+
 	msg "Queue-ID: $id"
 	echo
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list