aboutsummaryrefslogtreecommitdiffstats
path: root/ci/utility/rpms_check.sh
blob: a08b3ef9865a36cac7f7bed8a8d23f1bb7a8aae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/package-list.sh

if [ -d $RPM_WORKDIR/RPMS/x86_64 ]
then
    ls $RPM_WORKDIR/RPMS/x86_64 > list_of_gen_pack
else
    echo "Can't access folder $RPM_WORKDIR with rpm packages"
    exit 1
fi

for PACKAGENAME in `cat $DIR/rpms_list`
do
        if ! grep -q $PACKAGENAME list_of_gen_pack
        then
                echo "$PACKAGENAME is missing"
                exit 2
        fi
done