[projects/pld-builder.new] add relup support
glen
glen at pld-linux.org
Fri Mar 20 06:02:02 CET 2015
commit 5d3fc0f81ba2d8ac3a0f91bd2427fb81ed7aa323
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Feb 25 18:40:03 2015 +0200
add relup support
client/make-request.sh | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 9856f8a..c6ddfda 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.88
+VERSION=1.89
# prevent "*" from being expanded in builders var
set -f
@@ -19,6 +19,7 @@ no_depend=no
verbose=no
autotag=no
requester_override=
+relup=no
if [ -x /usr/bin/python ]; then
send_mode="python"
@@ -211,6 +212,11 @@ get_autotag() {
done
}
+relup() {
+ local script=$(dirname $(rpm -E %_topdir))/rpm-build-tools/relup.sh
+ $script -u -i "$@"
+}
+
usage() {
cat <<EOF
Usage: make-request.sh [OPTION] ... [SPECFILE] ....
@@ -245,6 +251,10 @@ Mandatory arguments to long options are mandatory for short options too.
(and later moved by release manager staff to ready/ and main ftp tree)
-u, --upgrade
Forces package upgrade (for use with -c or -q, not -t)
+ --relup
+ Bump package release, see also --relup
+ -m, --message
+ Set commit message for relup
-n, --no-upgrade
Disables package upgrade (for use with -r)
-ni, --no-install-br
@@ -285,9 +295,9 @@ Mandatory arguments to long options are mandatory for short options too.
-p, --priority VALUE
sets request priority (default 2)
-w SECONDS
- Wait SECONDS before sending actual request. Note: gpg passphrase still asked immediately.
- This may be useful if you just commited package and want to send it
- for test build after distfiles has fetched the file.
+ Wait SECONDS before sending actual request. Note: gpg passphrase is still asked immediately.
+ This may be useful if you just commited package and want to send it
+ for test build after distfiles has fetched the file.
-h, --help
Displays this help message
-v
@@ -344,6 +354,15 @@ while [ $# -gt 0 ]; do
autotag=yes
;;
+ -m)
+ shift
+ message=$1
+ ;;
+
+ --relup)
+ relup=yes
+ ;;
+
--with)
with="$with $(echo "$2" | tr ',' ' ')"
shift
@@ -651,6 +670,11 @@ specs=`for s in $specs; do
esac
done`
+if [ "$relup" = "yes" ]; then
+ msg "Auto relup enabled"
+ relup ${message:+-m "$message"} $specs
+fi
+
if [ "$autotag" = "yes" ]; then
msg "Auto autotag build enabled"
specs=$(get_autotag $specs)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/5d3fc0f81ba2d8ac3a0f91bd2427fb81ed7aa323
More information about the pld-cvs-commit
mailing list