In deploy/upgrade manipulating the exclude list fails for the last package in the exclude string
This is because it does:
CHECK=`grep "^exclude=.*$PACKAGE " $REPO_DIR/$REPO_FILE`
so requires a trailing blank after the last package name. Perhaps this should be:
CHECK=`grep -P "^exclude=.*$PACKAGE( |$)" $REPO_DIR/$REPO_FILE`
Note the addition of the -P switch as well. Works in bash. sh not tested
From this forum post, the user has this test line:
/etc/yum.repos.d/clearos-centos.repo:exclude=shim-aa64-* shim-x64-* shim-ia32-* cloud-init-* shim-0* mokutil-* grub2-* centos-release centos-logos anaconda-* arpwatch cyrus-imapd-* debugmode initscripts iptables-* openldap-* ppp-* rp-pppoe samba-*
Our script should remove the samba-*
Edited by Nick