chiark / gitweb /
tripe-keys: Fix iteration over keyring.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Apr 2008 12:19:35 +0000 (13:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 5 Apr 2008 12:19:35 +0000 (13:19 +0100)
In catacomb-python 426e898f..., KeyFile was changed to iterate over
key-ids rather than keys, for consistency with other mapping objects.
This means that we need to use itervalues explicitly now.

keys/tripe-keys.in

index 9ca903c5785fbf33fd23565fc1262cbe06e4ff2b..58c362792ed95a93166a6363eba2ee2bd49a304c 100644 (file)
@@ -197,7 +197,7 @@ Subcommands available:
 def master_keys():
   if not OS.path.exists('master'):
     return
-  for k in C.KeyFile('master'):
+  for k in C.KeyFile('master').itervalues():
     if (k.type != 'tripe-keys-master' or
         k.expiredp or
         not k.tag.startswith('master-')):