Hey all,


I have resumed the que'ing of F15 stage4 pkgs with the script below so that we have the farm busy over the weekend/holiday. If anyone has concerns/questions/suggestions please feel free to email me @ jon.chiappetta@senecac.on.ca as it gets forwarded right to my phone and will be able to read it "instantly" and easily! :)





#!/bin/bash
koji list-tagged dist-f15 > /tmp/k
export l=`find ./f15srpms -type f | grep -i '\.src\.rpm' | wc -l`
export x=1
find ./f15srpms -type f | sort -R | grep -i '\.src\.rpm' > /tmp/p
while true
do
ak list-tagged dist-f15 > /tmp/t
while true
do
ak list-tasks --mine --quiet | grep '^[0-9]' | grep -Ei ' (open|free) .* build' > /tmp/n
#echo "got tasks..." ; cat /tmp/n | wc -l ; echo
if [ `cat /tmp/n | wc -l` -ge 10 ]
then
break
fi
p=`cat /tmp/p | head -n "$x" | tail -n 1`
q=`basename "$p" | sed -e 's/[^0-9A-Za-z]/./g' -e 's/\.src\.rpm//g'`
#echo "checking pkg [$p] [$q]..." ; echo
c=`cat /tmp/n /tmp/t | grep -i "$q"`
let x="($x % $l) + 1"
if [ "$c" != "" ]
then
continue
fi
c=`cat /tmp/k | grep -i "$q"`
if [ "$c" == "" ]
then
continue
fi
echo "queing [$p] skipped [$x]"
ak build dist-f15 "$p" --nowait --background
let n="$n + 1"
done
sleep 60
done