Special configuration and patches used on the PPC secondary arch koji hub
Scripts
/usr/local/bin/koji-compare.py
Based on Dan's original program, the only difference is that a lot of packages that are excludearch ppc have been added to the exclude list.
/usr/local/bin/do-compare.sh
A very simple wrapper for the koji-compare.py program:
#!/bin/bash DATE=`date +%Y%m%d` # keep a daily copy in my home for stats over time: /usr/local/bin/koji-compare.py ppc f21 2>&1 | tee /home/karsten/compare-f21.$DATE # Preserve one copy early each day to be able to calculate the progress during the day: if [ `date +%k` -lt 6 ]; then /bin/cp -f /mnt/koji/reports/compare-f21.txt /mnt/koji/reports/compare-f21.txt.old fi /bin/cp -f /home/karsten/compare-f21.$DATE /mnt/koji/reports/compare-f21.txt
/usr/local/bin/get-no-of-unsigned.py
Python script to get the number of unsigned packages for a given tag. Source code is available here
/usr/local/bin/get-no-of-unsigned.sh
Another simple wrapper:
#!/bin/bash UNSIGNED=/mnt/koji/reports/UNSIGNED UNSIGNED_tmp=`mktemp /tmp/UNSIGNED.XXXXXX` echo "# Do not delete, created by $0/get-no-of-unsigned.sh," > $UNSIGNED_tmp echo "# parsed by /usr/share/koji-web/scripts/index.py" >> $UNSIGNED_tmp for dist in f19-updates f19-updates-testing f20 f20-updates f20-updates-testing; do ver=${dist/-updates} ver=${ver/-testing} ver=${ver/f} echo -n "$dist " >> $UNSIGNED_tmp /usr/local/bin/get-no-of-unsigned.py --tag=$dist --just-numbers --arch=ppc fedora-${ver}-secondary >> $UNSIGNED_tmp done /bin/mv -f $UNSIGNED_tmp $UNSIGNED /bin/chmod 644 $UNSIGNED /bin/rm -f $UNSIGNED_tmp
Cron Jobs
There are two cron jobs that call the above wrappers:
30 0,6,11,18 * * * /usr/local/bin/do-compare.sh 35 8,14,20 * * * /usr/local/bin/get-no-of-unsigned.sh
Directories
/mnt/koji/reports
This directory holds data files and logs that are used by the serverstatus page.
Files
/mnt/koji/reports/compare-[dist].txt
Comparison between packages on the PPC koji hub and the primary hub
/mnt/koji/reports/compare-[dist].txt.old
first comparison of the day, used to calculate progress during the day
/mnt/koji/reports/UNSIGNED
Created by /usr/local/bin/get-no-of-unsigned.sh
. Contains something like
f19-updates 0 f19-updates-testing 0 f20 3422 f20-updates 98 f20-updates-testing 0