[packages/rpm-build-tools/merge-pld-builder-client: 2543/2675] add relup support
glen
glen at pld-linux.org
Mon Dec 19 22:07:43 CET 2016
commit 8d8e134065eea09526a514649199b2e9d39ca481
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Feb 25 18:40:03 2015 +0200
add relup support
make-request.sh | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/make-request.sh b/make-request.sh
index 9856f8a..c6ddfda 100755
--- a/make-request.sh
+++ b/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/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list