[tz] Detecting a new release
enh at google.com
Fri Aug 3 19:43:36 UTC 2012
On Fri, Aug 3, 2012 at 12:33 PM, <Paul_Koning at dell.com> wrote:
> 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:
> > anyone who's looking for the three[-ish] lines of python can search for
> 'nlst' in this change:
> 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.
i do that for my own benefit, so when people want to know when we last
updated some particular zone, i can go through the check-in comments to
find out. (sure, a real tool would be better, and checking in the
corresponding non-compiled tzdata source files might be a good idea too,
but in the absence of that...)
> > 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
> 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.
i don't seem to have any of those in my python installation so i'm probably
stuck with Subprocess.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the tz