From: Remi Gacogne Date: Fri, 4 Apr 2025 10:09:33 +0000 (+0200) Subject: tasks: Run apt-get update before installing auth test deps X-Git-Tag: dnsdist-2.0.0-alpha2~101^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92b63cd79ca188e4266fd4d6fb7a8f99264c8e13;p=thirdparty%2Fpdns.git tasks: Run apt-get update before installing auth test deps Otherwise we might be trying to install a version that is no longer present in the repository, yielding a 404 error. --- diff --git a/tasks.py b/tasks.py index efdd8460e7..ab8a948952 100644 --- a/tasks.py +++ b/tasks.py @@ -265,6 +265,7 @@ def install_auth_test_deps_only(c, backend): extra=[] for b in backend: extra.extend(auth_backend_test_deps[b]) + c.sudo('apt-get update') c.sudo('DEBIAN_FRONTEND=noninteractive apt-get -y install ' + ' '.join(extra+auth_test_deps)) @task(help={'backend': 'Backend to install test deps for, e.g. gsqlite3; can be repeated'}, iterable=['backend'], optional=['backend'])