Merge "rpm-distro: set the contentdir yum var"
This commit is contained in:
commit
a8df61edbb
@ -28,7 +28,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
|
if [[ $DISTRO_NAME == "fedora" ]]; then
|
||||||
mkdir -p /etc/dnf/vars
|
mkdir -p /etc/dnf/vars
|
||||||
echo $basearch > /etc/dnf/vars/basearch
|
echo $basearch > /etc/dnf/vars/basearch
|
||||||
echo $arch > /etc/dnf/vars/arch
|
echo $arch > /etc/dnf/vars/arch
|
||||||
@ -36,3 +36,12 @@ else
|
|||||||
echo $basearch > /etc/yum/vars/basearch
|
echo $basearch > /etc/yum/vars/basearch
|
||||||
echo $arch > /etc/yum/vars/arch
|
echo $arch > /etc/yum/vars/arch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${DISTRO_NAME} =~ "centos" ]]; then
|
||||||
|
if [[ ${arch} == "x86_64" ]]; then
|
||||||
|
contentdir=centos
|
||||||
|
else
|
||||||
|
contentdir=altarch
|
||||||
|
fi
|
||||||
|
echo $contentdir > /etc/yum/vars/contentdir
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user