[projects/pld-builder.new] client: Add an option to upgrade rpm-build-tools on src builder
draenog
draenog at pld-linux.org
Tue Apr 16 13:32:12 CEST 2013
commit 045b9f0b2278ddead6d7d0febfd33aa753f77d19
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Tue Apr 16 08:29:21 2013 +0100
client: Add an option to upgrade rpm-build-tools on src builder
client/make-request.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 830d13a..76e1474 100755
--- a/client/make-request.sh
+++ b/client/make-request.sh
@@ -61,6 +61,7 @@ fi
specs=
df_fetch=no
upgrade_macros=no
+upgrade_scripts=no
cr=$(printf "\r")
# Set colors
@@ -448,6 +449,9 @@ while [ $# -gt 0 ]; do
f_upgrade=no
shift
;;
+ --upgrade-scripts)
+ upgrade_scripts='yes'
+ ;;
-q)
command="rpm -q $2"
f_upgrade=no
@@ -633,6 +637,14 @@ if [ "$upgrade_macros" = "yes" ]; then
build_mode=test
fi
+if [ "$upgrade_scripts" = "yes" ]; then
+ command="cd ~/rpm/rpm-build-tools && git pull"
+ command_flags=as-builder
+ builders="$dist-src"
+ f_upgrade=no
+ build_mode=test
+fi
+
if [[ "$requester" != *@* ]] ; then
requester="$requester at pld-linux.org"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/045b9f0b2278ddead6d7d0febfd33aa753f77d19
More information about the pld-cvs-commit
mailing list