Skip to content

Commit

Permalink
Enable CR repository and adjust grep in Base configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed Oct 22, 2014
1 parent 93c8779 commit aaafd9a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vagrant/scripts/repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ if ! grep -Fxq "includepkgs=mapserver mapserver-python mapcache libxml2 libxml2-
fi

# Set exclude in CentOS-Base
if ! grep -Fxq "exclude=libxml2 libxml2-python" /etc/yum.repos.d/CentOS-Base.repo ; then
if ! grep -Fxq "exclude=libxml2 libxml2-python libxerces-c-3_1" /etc/yum.repos.d/CentOS-Base.repo ; then
sed -e 's/^\[base\]$/&\nexclude=libxml2 libxml2-python libxerces-c-3_1/' -i /etc/yum.repos.d/CentOS-Base.repo
sed -e 's/^\[updates\]$/&\nexclude=libxml2 libxml2-python libxerces-c-3_1/' -i /etc/yum.repos.d/CentOS-Base.repo
fi

# Disabled to be fully compatible with build environment
# Install Continuous Release (CR) repository
#yum install -y centos-release-cr
if ! rpm -q --quiet centos-release-cr ; then
yum install -y centos-release-cr
# Set exclude in CentOS-CR
if ! grep -Fxq "exclude=libxml2 libxml2-python libxerces-c-3_1" /etc/yum.repos.d/CentOS-CR.repo ; then
sed -e 's/^\[cr\]$/&\nexclude=libxml2 libxml2-python libxerces-c-3_1/' -i /etc/yum.repos.d/CentOS-CR.repo
fi
fi

0 comments on commit aaafd9a

Please sign in to comment.