5 if [ "$1" = "-v" ];then
11 if [ "$1" = "-q" ];then
16 if [ -z "$HOME" ];then
21 if [ "$i" = "${i#/var/lib/mock/}" ];then
22 echo >&2 "$i not /var/lib/mock/*"
25 if [ "$i" != "${i#*/root}" ];then
26 echo >&2 "$i contains /root"
29 if [ "$i" != "${i%-intel}" ];then
35 for p in /proc/*/root;do
37 if [ "${l#$i/}" != "$l" ];then
45 echo >&2 "$i has existing processes: $b"
49 /usr/local/sbin/mocksetup -u `basename $i`
50 rm -f $i/root/var/lib/rpm/__db.*
52 mock $opts -r `basename $i` --update
53 mock $opts -r `basename $i` --install `cat ~/src/INSTALL`
55 # Run: yum groupinstall buildsys-build
56 # Cleaning would undo the changes above.
57 # 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
58 # rpmdb: Build signature doesn't match environment
59 # on: fedora-{11,12}-i386
60 #if [ "$i" = "${i#*/fedora-rawhide-}" ];then
61 # mock $opts -r `basename $i` --no-clean --no-cleanup-after --rebuild /usr/local/share/empty-0.1-1.src.rpm
63 # Just rpmbuild would error with:
64 # error: cannot open Packages index using db3 - Invalid argument (22)
65 rpm -r $i/root --rebuilddb
66 # Leftover usually just removing vital system packages:
67 rm -f $i/root/var/lib/yum/transaction-*
69 rpm -r $i/root --qf '%{name}.%{arch}\n' -qa|sort|uniq -d|sed -e '1s/^/ror duplicity:\n/' -e '1s/^/mockupdate er/'
72 echo done mockupdate "$*"