5 if [ "$1" = "-v" ];then
11 if [ "$1" = "-q" ];then
17 if [ "$i" = "${i#/var/lib/mock/}" ];then
18 echo >&2 "$i not /var/lib/mock/*"
21 if [ "$i" != "${i#*/root}" ];then
22 echo >&2 "$i contains /root"
25 if [ "$i" != "${i%-intel}" ];then
31 for p in /proc/*/root;do
33 if [ "${l#$i/}" != "$l" ];then
41 echo >&2 "$i has existing processes: $b"
45 /usr/local/sbin/mocksetup -u `basename $i`
46 rm -f $i/root/var/lib/rpm/__db.*
48 mock $opts -r `basename $i` --update
49 mock $opts -r `basename $i` --install `cat ~/src/INSTALL`
51 # Run: yum groupinstall buildsys-build
52 # Cleaning would undo the changes above.
53 # file /lib/libnssutil3.so conflicts between attempted installs of nss-3.12.3.99.3-10.fc12.i686 and nss-util-3.12.3.99.3-9.fc12.i686
54 # rpmdb: Build signature doesn't match environment
55 # on: fedora-{11,12}-i386
56 #if [ "$i" = "${i#*/fedora-rawhide-}" ];then
57 # mock $opts -r `basename $i` --no-clean --no-cleanup-after --rebuild /usr/local/share/empty-0.1-1.src.rpm
59 # Just rpmbuild would error with:
60 # error: cannot open Packages index using db3 - Invalid argument (22)
61 rpm -r $i/root --rebuilddb
62 # Leftover usually just removing vital system packages:
63 rm -f $i/root/var/lib/yum/transaction-*
65 rpm -r $i/root --qf '%{name}.%{arch}\n' -qa|sort|uniq -d|sed -e '1s/^/ror duplicity:\n/' -e '1s/^/mockupdate er/'
68 echo done mockupdate "$*"