#!/bin/bash
koji list-tagged dist-f15 > /tmp/k
export l=`find /tmp/f15srpms -type f | grep -i '\.src\.rpm' | wc -l`
export x=1
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=`find /tmp/f15srpms -type f | grep -i '\.src\.rpm' | 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
        let n="$n + 1"
    done
    sleep 60
done


As you can see the above is not commented but ask me if any parts are unclear.
The script basically:
- checks how many tasks are que'd
- if it hasn't already been built yet in our F15
- if the pkg being que'd exists in the normal F15