Commit 313f2854 authored by Michal Nowikowski's avatar Michal Nowikowski

hammer: added retry when apt update fails

parent be42fe41
......@@ -1477,7 +1477,10 @@ def _build_native_pkg(system, revision, features, tarball_path, env, check_times
# install our freeradius-client but now from deb
execute("echo 'deb %s kea main' | sudo tee /etc/apt/sources.list.d/isc.list" % repo_url)
execute("sudo apt-key adv --fetch-keys %s/repository/repo-keys/repo-key.gpg" % repository_url)
execute('sudo apt update')
_, out = execute('sudo apt update', capture=True)
if 'Bad header data' in out:
execute('sudo apt update')
install_pkgs('libfreeradius-client libfreeradius-client-dev', env=env, check_times=check_times)
# unpack tarball
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment