Author: arekm                        Date: Wed Mar  4 08:34:05 2009 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
new -j support (jobs limit)

---- Files affected:
pld-builder.new/client:
   make-request.sh (1.55 -> 1.56) 

---- Diffs:

================================================================
Index: pld-builder.new/client/make-request.sh
diff -u pld-builder.new/client/make-request.sh:1.55 
pld-builder.new/client/make-request.sh:1.56
--- pld-builder.new/client/make-request.sh:1.55 Mon Feb  9 12:14:49 2009
+++ pld-builder.new/client/make-request.sh      Wed Mar  4 09:34:00 2009
@@ -105,6 +105,7 @@
        echo "       Disables package upgrade (for use with -r)"
        echo "  -ni  -no-install-br"
        echo "       Do not install missing BuildRequires (--nodeps)"
+       echo "  -j   Number of parallel jobs for single build"
        echo "  -f   --flag"
        echo "  -d   --distro"
        echo "       Specify value for \$distro"
@@ -200,6 +201,11 @@
                        flags="$flags no-install-br"
                        ;;
 
+               -j )
+                       jobs="$2"
+                       shift
+                       ;;
+
                --flag | -f )
                        flags="$flags $2"
                        shift
@@ -366,6 +372,9 @@
        echo "<group id='$id' no='0' flags='$flags'>"
        echo "  <time>$(date +%s)</time>"
        echo "  <priority>$priority</priority>"
+       if [ -n "$jobs" ]; then
+               echo "  <maxjobs>$jobs</maxjobs>"
+       fi
        echo
 
        if [ "$command" != "" ] ; then
@@ -382,6 +391,9 @@
        else
 
        echo >&2 "* Using priority $priority"
+       if [ -n "$jobs" ]; then
+               echo >&2 "* Using jobs $jobs"
+       fi
        echo >&2 "* Using email $builder_email"
        echo >&2 "* Build mode: $build_mode"
        if [ "$f_upgrade" = "yes" ] ; then
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/client/make-request.sh?r1=1.55&r2=1.56&f=u

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

Reply via email to