[buildinfo.debian.net] 05/08: Add command to refresh all keys.

Chris Lamb chris at chris-lamb.co.uk
Fri Nov 4 11:08:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository buildinfo.debian.net.

commit f4f5665947ea17c82c8acc9d7bdd2b49fac2aecb
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Nov 4 11:03:46 2016 +0000

    Add command to refresh all keys.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bidb/keys/management/__init__.py                  | 0
 bidb/keys/management/commands/__init__.py         | 0
 bidb/keys/management/commands/refresh_all_keys.py | 9 +++++++++
 3 files changed, 9 insertions(+)

diff --git a/bidb/keys/management/__init__.py b/bidb/keys/management/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/bidb/keys/management/commands/__init__.py b/bidb/keys/management/commands/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/bidb/keys/management/commands/refresh_all_keys.py b/bidb/keys/management/commands/refresh_all_keys.py
new file mode 100644
index 0000000..f77e225
--- /dev/null
+++ b/bidb/keys/management/commands/refresh_all_keys.py
@@ -0,0 +1,9 @@
+from django.core.management.base import NoArgsCommand
+
+from ...tasks import update_or_create_key
+from ...models import Key
+
+class Command(NoArgsCommand):
+    def handle_noargs(self, **options):
+        for x in Key.objects.all():
+            update_or_create_key.delay(x.uid)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/buildinfo.debian.net.git



More information about the Reproducible-commits mailing list