From 850a41b56643e5fb475f4a0f51bc787798802ec9 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Tue, 8 Dec 2015 08:54:29 +0800 Subject: improve the efficiency of centos ppa building JIRA: COMPASS-188 Change-Id: I8fbf89a71bee7a5e68976892ae8cd0bffc96c1ae Signed-off-by: carey.xu --- build/templates/RedHat_kilo.tmpl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'build/templates/RedHat_kilo.tmpl') diff --git a/build/templates/RedHat_kilo.tmpl b/build/templates/RedHat_kilo.tmpl index 3d587250..826acb8d 100644 --- a/build/templates/RedHat_kilo.tmpl +++ b/build/templates/RedHat_kilo.tmpl @@ -64,19 +64,20 @@ baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 EOF +cat <>/etc/yum.conf +exclude=mongodb-org,mongodb-org-server +EOF + yum update -y -yum install createrepo -y -yum install tar -y +yum install createrepo tar -y +yum -y install --downloadonly MariaDB-Galera-server #download packages #set packages = $getVar('default_packages', []) -#for pkg in $packages -yum -y install $pkg --downloadonly -#end for +yum -y install --skip-broken --downloadonly #echo ' '.join(packages) #set packages = $getVar('packages', []) -#for pkg in $packages -yum -y install $pkg --downloadonly -#end for +#silent packages.pop(packages.index('MariaDB-Galera-server')) +yum -y install --skip-broken --downloadonly #echo ' '.join(packages) #make repo -- cgit 1.2.3-korg