summaryrefslogtreecommitdiffstats
path: root/scripts/dbg_rpminst
blob: 36caab193cd065f619a90367d6340bbd501798c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

yum -y -C erase 'abrt*'
yum -y -C --nogpgcheck localinstall *.rpm
killall -HUP dbus-daemon

exit

while rpm -qa | grep abrt >/dev/null; do
    rpm -qa | grep abrt | while read package; do
	echo "$package: rpm -e `basename "$package" .rpm`"
        rpm -e "`basename "$package" .rpm`"
    done
done

while true; do
    r=0
    for package in *.rpm; do
        test -f "$package" || continue
	# Is it installed?
        rpm -q "`basename "$package" .rpm`" >/dev/null && continue
	# Try to install, record failure
	echo "$package: rpm -i `basename "$package" .rpm`"
	rpm -i "$package" || r=1
    done
    test $r = 0 && break
done

killall -HUP dbus-daemon