~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Jonathan Riddell
  • Date: 2011-06-14 16:11:58 UTC
  • mto: (5971.2.3 bzr-gpgme)
  • mto: This revision was merged to the branch mainline in revision 6003.
  • Revision ID: jriddell@canonical.com-20110614161158-ftmnqiqm6erhsws1
add some tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        except gpgme.GpgmeError,error:
147
147
            raise errors.VerifyFailed(error[2])
148
148
 
 
149
        if len(result) == 0:
 
150
            return SIGNATURE_NOT_VALID
149
151
        if result[0].summary & gpgme.SIGSUM_VALID:
150
152
            return SIGNATURE_VALID
151
153
        if result[0].summary & gpgme.SIGSUM_RED: