]> git.donarmstrong.com Git - dak.git/commitdiff
daklib/gpg.py: Pass a few more options to gpg.
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 29 Jul 2014 17:41:28 +0000 (19:41 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Jul 2014 18:16:35 +0000 (20:16 +0200)
daklib/gpg.py

index 828bf64906278f86db0aa13547b91356c0ba6568..9935c6d554a6eedc0658ed4cc14be1e5c83687ad 100644 (file)
@@ -195,7 +195,12 @@ class SignedFile(object):
                 fcntl.fcntl(fd, fcntl.F_SETFD, old & ~fcntl.FD_CLOEXEC)
             os.closerange(4, _MAXFD)
 
-            args = [self.gpg, "--status-fd=3", "--no-default-keyring"]
+            args = [self.gpg,
+                    "--status-fd=3",
+                    "--no-default-keyring",
+                    "--batch",
+                    "--no-tty",
+                    "--trust-model", "always"]
             for k in self.keyrings:
                 args.append("--keyring=%s" % k)
             args.extend(["--decrypt", "-"])