summaryrefslogtreecommitdiffstats
path: root/scripts/dbg_rpminst
blob: 8255777a3cc5abc3f2c6192fa7c31b3768b2c7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

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