import repository from arizona
[raven.git] / tools / phonehome / smbpacktest.postinstall
1 #! /bin/bash
2
3 PACKS="amanda gnuchess mew emacs openssl-devel subversion"
4 UNINSTALLED_PACKS=""
5
6 for PACK in $PACKS; do
7     echo "checking package: $PACK"
8     echo -n "  "
9     rpm -q $PACK
10     if [ $? != 0 ]; then
11         echo "  ERROR: $PACK is not installed"
12         UNINSTALLED_PACKS="$UNINSTALLED_PACKS,$PACK"
13     fi
14 done
15
16 # set result to either "1,uninstalled_package_list" if packages are
17 # not installed, or "0" if packages are installed
18
19 if [ -n "$UNINSTALLED_PACKS" ]; then 
20     RESULT="1$UNINSTALLED_PACKS"
21 else
22     RESULT="0"
23 fi
24
25 echo $RESULT
26
27 ./phonehome.py --status $RESULT packtest
28