Merge "VES plugin: Remove collectd modules, now a stand alone process"
[barometer.git] / ci / utility / rpms_check.sh
1 #!/bin/sh
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 source $DIR/package-list.sh
5
6 if [ -d $RPM_WORKDIR/RPMS/x86_64 ]
7 then
8     ls $RPM_WORKDIR/RPMS/x86_64 > list_of_gen_pack
9 else
10     echo "Can't access folder $RPM_WORKDIR with rpm packages"
11     exit 1
12 fi
13
14 for PACKAGENAME in `cat $DIR/rpms_list`
15 do
16         if ! grep -q $PACKAGENAME list_of_gen_pack
17         then
18                 echo "$PACKAGENAME is missing"
19                 exit 2
20         fi
21 done