]> git.decadent.org.uk Git - dak.git/blob - contrib/signature_checking_optional-doogie.diff
Add new top level directories
[dak.git] / contrib / signature_checking_optional-doogie.diff
1 Index: katie
2 ===================================================================
3 RCS file: /cvs/dak/dak/katie,v
4 retrieving revision 1.28
5 diff -u -r1.28 katie
6 --- katie       2001/02/06 00:39:44     1.28
7 +++ katie       2001/02/09 18:14:49
8 @@ -102,7 +102,13 @@
9  def check_signature (filename):
10      global reject_message
11  
12 -    (result, output) = commands.getstatusoutput("gpg --emulate-md-encode-bug --batch --no-options --no-default-keyring --always-trust --keyring=%s --keyring=%s < %s >/dev/null" % (Cnf["Dinstall::PGPKeyring"], Cnf["Dinstall::GPGKeyring"], filename))
13 +    if Cnf.FindB("Dinstall::NoSigCheck"):
14 +       return 1
15 +    keyrings = ""
16 +    for keyring in Cnf.ValueList("Dinstall::Keyrings"):
17 +       keyrings = keyrings + " --keyring " + keyring;
18 +
19 +    (result, output) = commands.getstatusoutput("gpg --emulate-md-encode-bug --batch --no-options --no-default-keyring --always-trust %s < %s >/dev/null" % (keyrings, filename))
20      if (result != 0):
21          reject_message = "Rejected: GPG signature check failed on `%s'.\n%s\n" % (os.path.basename(filename), output)
22          return 0