You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
778 B

#!/bin/bash
# Author: Johnny Hughes <johnny@centos.org>
# Note: This test is only for Pre Updates testing prior to releasing on CentOS
uname_arch=$(uname -m)
ret_val=0
if [ "$centos_ver" = "7" ] ; then
t_Log "Running $0 - Checking current repositories for .el7.centos on modified files"
uname_arch=$(uname -m)
yum clean all
for pkg in $(cat tests/r_check_mod_packages/c72-mod-packages.lst.$uname_arch|grep -v '^#')
do
has_centos=$(yum list $pkg | grep '.el7.centos')
if [ "$has_centos" == "" ]; then
echo $pkg missing .el7.centos
ret_val=1
fi
done
else
t_Log "Skipping $0 - This test only for CentOS-7, skipping Modified Packages test ..."
ret_val=0
fi
t_CheckExitStatus $ret_val