commit 3c2836e1ddc4035163c2fa7c3050d8efafa72eb6
Author: Jacek Konieczny <[email protected]>
Date:   Thu Oct 17 11:18:25 2013 +0200

    make-request.sh: allow requester override
    
    --requester option added to make-request.sh so users with
    appropriate privileges (change_requester in acl.conf) can
    send requests on behalf of other users.

 make-request.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/make-request.sh b/make-request.sh
index 195fa35..b67f706 100755
--- a/make-request.sh
+++ b/make-request.sh
@@ -16,6 +16,7 @@ url=
 no_depend=no
 verbose=no
 autotag=no
+requester_override=no
 
 if [ -x /usr/bin/python ]; then
        send_mode="python"
@@ -274,6 +275,8 @@ Mandatory arguments to long options are mandatory for short 
options too.
             sets request priority (default 2)
       -h, --help
             Displays this help message
+      --requester username
+            Override the requester
 EOF
        exit 0
 }
@@ -484,6 +487,11 @@ while [ $# -gt 0 ]; do
                        usage
                        ;;
 
+               --requester)
+                       requester_override="$2"
+                       shift
+                       ;;
+
                -*)
                        die "unknown knob: $1"
                        ;;
@@ -705,6 +713,10 @@ gen_req() {
                msg "Build mode: $(tput setaf 3)$build_mode$c_norm"
        fi
 
+       if [ -n "$requester_override" ] ; then
+               echo "  <requester>$requester_override</requester>"
+       fi
+
        msg "Queue-ID: $id"
        echo
 
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to