commit 605c339c9ed0dfcce454e92b81c5cdfc38413217
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Dec 29 10:02:08 2011 +0000

    - validate distro argument
    
    Changed files:
        client/make-request.sh -> 1.101

 make-request.sh | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/make-request.sh b/make-request.sh
index b79854b..a213be8 100755
--- a/make-request.sh
+++ b/make-request.sh
@@ -216,11 +216,35 @@ EOF
        exit 0
 }
 
+# validate distro, set $distro
+set_distro() {
+       case "$1" in
+       ac)
+               ;;
+       ac-java|ac-xen)
+               ;;
+       ti)
+               ;;
+       ti-dev)
+               ;;
+       th)
+               ;;
+       th-java)
+               ;;
+       aidath)
+               ;;
+       *)
+               die "distro \`$1' not known"
+               ;;
+       esac
+
+       distro=$1
+}
 
 while [ $# -gt 0 ] ; do
        case "$1" in
                --distro | -d)
-                       distro=$2
+                       set_distro $2
                        shift
                        ;;
 
================================================================

---- 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