[tz] Detecting a new release

Paul_Koning at Dell.com Paul_Koning at Dell.com
Fri Aug 3 19:33:44 UTC 2012


On Aug 3, 2012, at 3:18 PM, enh wrote:

> i switched Android's script from bash to python last month just to deal with FTP more conveniently:
> 
>   https://android.googlesource.com/platform/bionic/+/5d967e43d03e9c916548b9c290b0c4138df2f1f8
> 
> anyone who's looking for the three[-ish] lines of python can search for 'nlst' in this change: https://android.googlesource.com/platform/bionic/+/5d967e43d03e9c916548b9c290b0c4138df2f1f8%5E!/#F0

Cool.

I don't think you need to retrieve intermediate files, if you're several files behind.  Everything is cumulative, so the latest is always sufficient.
> 
> does anyone have any good ideas about programmatically doing something about verifying the PGP signatures?

There's python-gnupg and pypgp, both of which look like wrappers around the command line tool.  You can do likewise with the Subprocess module, of course.  

Presumably it could be done with pycrypto, I'm not sure if anyone has already done the legwork.  It's probably not hard, but pycrypto is a crypto API, so doing PGP things would mean some extra code on top of that basic API to do the PGP specific processing.

	paul




More information about the tz mailing list