[packages/rpm-build-tools/merge-pld-builder-client: 117/2675] - add --update-macros to update rpm-build-macros on src builder

glen glen at pld-linux.org
Mon Dec 19 21:58:45 CET 2016


commit 47c53943ccd972450a71445120c9f324259dfaff
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Aug 23 10:14:43 2010 +0000

    - add --update-macros to update rpm-build-macros on src builder
    
    Changed files:
        client/make-request.sh -> 1.80

 make-request.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/make-request.sh b/make-request.sh
index fb165c9..e979e82 100644
--- a/make-request.sh
+++ b/make-request.sh
@@ -48,6 +48,7 @@ fi
 # internal options, not to be overriden
 specs=
 df_fetch=no
+upgrade_macros=no
 
 die() {
 	echo >&2 "$0: $*"
@@ -179,6 +180,8 @@ Mandatory arguments to long options are mandatory for short options too.
             shortcut for --command poldek --up -Uv ARGS
       --cvsup
             Updates builders infrastructure (outside chroot)
+      --update-macros
+            Updates rpm-build-macros on src builder
       -q
             shortcut for --command rpm -q ARGS
       -g, --gpg-opts "opts"
@@ -318,6 +321,10 @@ while [ $# -gt 0 ] ; do
 			f_upgrade=no
 			;;
 
+		--update-macros)
+			upgrade_macros="yes"
+			;;
+
 		-df | --distfiles-fetch | --distfiles-fetch-request)
 			df_fetch=yes
 			;;
@@ -476,6 +483,13 @@ if [ "$df_fetch" = "yes" ]; then
 	exit 0
 fi
 
+if [ "$upgrade_macros" = "yes" ]; then
+	command="poldek --up -Uv rpm-build-macros"
+	builders="$distro-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/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd



More information about the pld-cvs-commit mailing list