125
125
gpg_strategy.set_acceptable_keys(acceptable_keys)
128
self.outf.write(string + "\n")
129
def write_verbose(string):
130
self.outf.write(" " + string + "\n")
127
132
#get our list of revisions
129
134
if revision is not None:
157
162
count, result, all_verifiable =\
158
163
gpg_strategy.do_verifications(revisions, repo)
159
164
if all_verifiable:
160
self.outf.write(gettext(
161
166
"All commits signed with verifiable keys\n"))
163
self.outf.write(gpg_strategy.verbose_valid_message(result))
168
write(gpg_strategy.verbose_valid_message(result))
166
self.outf.write(gpg_strategy.valid_commits_message(count))
168
self.outf.write(gpg_strategy.verbose_valid_message(result))
169
self.outf.write(gpg_strategy.unknown_key_message(count))
171
self.outf.write(gpg_strategy.verbose_missing_key_message(
173
self.outf.write(gpg_strategy.commit_not_valid_message(count))
175
self.outf.write(gpg_strategy.verbose_not_valid_message(result,
177
self.outf.write(gpg_strategy.commit_not_signed_message(count))
179
self.outf.write(gpg_strategy.verbose_not_signed_message(result,
171
write(gpg_strategy.valid_commits_message(count))
173
write_verbose(gpg_strategy.verbose_valid_message(result))
174
write(gpg_strategy.unknown_key_message(count))
176
write_verbose(gpg_strategy.verbose_missing_key_message(result))
177
write(gpg_strategy.commit_not_valid_message(count))
179
write_verbose(gpg_strategy.verbose_not_valid_message(result,
181
write(gpg_strategy.commit_not_signed_message(count))
183
write_verbose(gpg_strategy.verbose_not_signed_message(result,