5 if [ "$1" = "-v" ];then
11 if [ "$i" = "${i#/var/lib/mock/}" ];then
12 echo >&2 "$i not /var/lib/mock/*"
15 if [ "$i" != "${i#*/root}" ];then
16 echo >&2 "$i contains /root"
19 if [ "$i" != "${i%-intel}" ];then
25 for p in /proc/*/root;do
27 if [ "${l#$i/}" != "$l" ];then
35 echo >&2 "$i has existing processes: $b"
39 /usr/local/sbin/mocksetup -u `basename $i`
40 mock $opts -r `basename $i` --update
41 mock $opts -r `basename $i` --install `cat ~/src/INSTALL`
42 # Run: yum groupinstall buildsys-build
43 # Cleaning would undo the changes above.
44 # 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
45 # rpmdb: Build signature doesn't match environment
46 # on: fedora-{11,12}-i386
47 #if [ "$i" = "${i#*/fedora-rawhide-}" ];then
48 # mock $opts -r `basename $i` --no-clean --no-cleanup-after --rebuild /usr/local/share/empty-0.1-1.src.rpm
50 # Just rpmbuild would error with:
51 # error: cannot open Packages index using db3 - Invalid argument (22)
52 rpm -r $i/root --rebuilddb
55 echo done mockupdate "$*"