Commit graph

17 commits

Author SHA1 Message Date
Vladimir Diaz
04221d3f0d Address issue #163.
Changed behavior:
Write metadata only if the uncompressed version has not been written, has changed, or if
compressed versions are missing (if requested).  Not only is re-saving unmodified metadata not ideal, it also forces a new version of the release file if compressed metadata is rewritten.  gzip attaches a timestamp to compressed files, which may cause compressed content to generate different digests if independently written.

Update libtuf.py comments.
Minor edit to docstrings of previous commit that addressed interposition issues.
2014-01-13 09:34:21 -05:00
Vladimir Diaz
b73393c214 Resolve issues #149 and #155.
Move 'tuf.client.updater.Updater.refresh()' call in interposition to its updater's __init__().  The refresh() was previously executed on every target request.

Add tuf.interposition.refresh() for integrations that may require a manual refresh of top-level metadata (rare).
2014-01-09 09:48:37 -05:00
dachshund
3ec3b8bc05 Return interposition configurations. 2013-08-12 19:18:54 -04:00
dachshund
e76454b4ed Allow deconfiguration of interposition. 2013-07-01 15:59:15 +08:00
dachshund
be1a52c159 Better error logging. 2013-03-14 20:42:31 -04:00
dachshund
2828deb6f6 Do not intercept non-GET HTTP requests (#34); needs review. 2013-03-12 23:41:24 -04:00
dachshund
0c072e47f2 Follow Seattle coding style. 2013-03-08 20:46:17 -05:00
dachshund
53a573648c More explicit method of interposing as the urllib modules; fixes issue #28. 2013-03-08 20:09:17 -05:00
dachshund
a1bfde4893 Follow Seattle coding style. 2013-03-08 18:29:20 -05:00
dachshund
3c70103174 Better modularization of Updater. 2013-03-07 17:53:48 -05:00
dachshund
2d0062f9e1 Modularization of configuration parser. 2013-03-06 23:19:18 -05:00
dachshund
31b97634b4 Allow users to require SSL certificate verification during interposition. 2013-03-04 19:54:41 -05:00
dachshund
1cd22baab5 Import a (missed) class. 2013-03-04 13:05:34 -05:00
dachshund
033a573819 Paranoid checks of configurations in order to prevent interposition cycles. 2013-03-04 13:01:52 -05:00
dachshund
8281d3b9dc Double check network location during updates. 2013-03-04 10:51:36 -05:00
dachshund
e5ba4385fd Documentation stub. 2013-03-04 01:42:15 -05:00
dachshund
b1cf9538ec Better modules for interposition. 2013-03-04 00:43:02 -05:00