570ecf16a5
The default value was set in the centos7 element, but not exported, which caused issues in rpm-distro. Also changed a test in rpm-distro to only check for DIB_RELEASE > 22 if it's fedora. Closes-Bug: #1477172 Change-Id: Ib6f4227411c2e8f1965c3b78bc318512c59a7876
17 lines
318 B
Bash
Executable File
17 lines
318 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
|
|
cfg=/etc/dnf/dnf.conf
|
|
else
|
|
cfg=/etc/yum.conf
|
|
fi
|
|
|
|
sed -i 's/keepcache=1/keepcache=0/' $cfg
|
|
sed -i 's/cachedir=\/tmp\/yum/cachedir=\/var\/cache\/yum/' $cfg
|