Merge "Set and export DIB_RELEASE for centos7"

This commit is contained in:
Jenkins 2015-08-07 04:54:46 +00:00 committed by Gerrit Code Review
commit 9e42c69c80
4 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
export DIB_RELEASE=GenericCloud
export DISTRO_NAME=centos7

View File

@ -25,7 +25,7 @@ else
exit 1
fi
if [ $DIB_RELEASE -ge 22 ]; then
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
mkdir -p /etc/dnf/vars
echo $basearch > /etc/dnf/vars/basearch
echo $arch > /etc/dnf/vars/basearch

View File

@ -6,7 +6,7 @@ fi
set -eu
set -o pipefail
if [ $DIB_RELEASE -ge 22 ]; then
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
cfg=/etc/dnf/dnf.conf
else
cfg=/etc/yum.conf

View File

@ -6,7 +6,7 @@ fi
set -eu
set -o pipefail
if [ $DIB_RELEASE -ge 22 ]; then
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
# dnf is slightly different; doesn't have these by default
cfg=/etc/dnf/dnf.conf
echo "keepcache=1" >> $cfg