Disable anvil-deps repo at the start of bootstrap
Change-Id: I0ffea64f0001adcbfc6aa4cc4f9782a56a3c24c2 Closes-Bug: 1350603
This commit is contained in:
parent
7c9398eeff
commit
6ffb625894
12
smithy
12
smithy
@ -9,6 +9,7 @@ cd "$(dirname "$0")"
|
||||
|
||||
VERBOSE="${VERBOSE:-0}"
|
||||
YUM_OPTS="--assumeyes --nogpgcheck"
|
||||
YUM_CONFIG_MANAGER_OPTS=""
|
||||
CURL_OPTS=""
|
||||
|
||||
# Give access to the system packages so that when clients get installed
|
||||
@ -94,6 +95,15 @@ bootstrap_rpm_packages()
|
||||
return 0
|
||||
}
|
||||
|
||||
clean_anvil_deps()
|
||||
{
|
||||
# A previously failed anvil build which is not fully cleaned
|
||||
# up has the potential for leaving broken packages. We disable
|
||||
# the anvil-deps repo on bootstrap to avoid subsequent yum failures
|
||||
# when pulling packages from this repo during bootstrap.
|
||||
yum-config-manager $YUM_CONFIG_MANAGER_OPTS --disable anvil-deps
|
||||
}
|
||||
|
||||
clean_pip()
|
||||
{
|
||||
# See: https://github.com/pypa/pip/issues/982
|
||||
@ -307,6 +317,8 @@ fi
|
||||
if ! needs_bootstrap; then
|
||||
clean_pip
|
||||
run_smithy
|
||||
else
|
||||
clean_anvil_deps
|
||||
fi
|
||||
|
||||
if [ "$BOOTSTRAP" == "false" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user