← Back to team overview

launchpad-dev team mailing list archive

Re: question re. canonical.launchpad.mail.signed_message_from_string

 

On Thu, Oct 01, 2009 at 12:42:45PM +0200, Muharem Hrnjadovic wrote:
> Bjorn Tillenius wrote:
> > On Thu, Oct 01, 2009 at 08:40:24AM +0200, Muharem Hrnjadovic wrote:
> >> Hello there!
> >>
> >> I came across this yesterday: when the text in question has no GPG/PGP
> >> signature the value of 'signedContent' may not be what you expect i.e.
> >> it is None:
> > 
> > I don't follow. How do you have content that is signed, if you don't
> > have a signature?
> 
> Sorry for not explaining better :) this is due to a situation (in
> PackageUpload._stripPgpSignature()) where the content of a .changes file
> may be signed or unsigned.
> 
> I have resolved it by checking whether 'signedContent' is None and
> assuming that it was unsigned in first place.

Ok, so I would say that signedContent works the way it's expected.


-- 
Björn Tillenius | https://launchpad.net/~bjornt



References