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/?a=commitdiff_plain;h=refs%2Fpull%2F15394%2Fhead;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'])