]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
tasks: Run apt-get update before installing auth test deps 15394/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Apr 2025 10:09:33 +0000 (12:09 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Apr 2025 10:09:33 +0000 (12:09 +0200)
Otherwise we might be trying to install a version that is no longer
present in the repository, yielding a 404 error.

tasks.py

index efdd8460e7c3a5fe0755cf1996b373f4dcfe64c1..ab8a94895222a45d05646a09a8112c1beeae280f 100644 (file)
--- 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'])