summaryrefslogtreecommitdiff
path: root/lib/thandy/formats.py
AgeCommit message (Collapse)Author
2013-04-02Several fixesTomás Touceda
2012-01-04Add a thp_dest parameter to install package in custom locationsTomás Touceda
2011-10-20Fix file permissionsTomás Touceda
2011-09-02Fix behavior for bundles with more than one thp and add thpTomás Touceda
2011-07-26Update lockfile to work on OSXTomás Touceda
This changes the file modes, it seems OSX needs it this way.
2011-06-22Add really simple checker, installer and thpdbTomas Touceda
But it's still not finished.
2011-06-22Creates basic structure to start the thp checkerTomas Touceda
2011-06-22Make optional keys actually optionalTomas Touceda
2011-06-22Creates the thp fileTomas Touceda
Adds two parameters to makethppackage: thpPath and scriptsDir. thpPath: where to save the finished thp file. scriptsDir: where the scripts specified in the configuration file are.
2011-06-21First part of makethppackageTomas Touceda
Creates its metadata based on a config file. This still needs a sanity check.
2010-07-25More unit tests and documentation for the Thandy codeNick Mathewson
2010-07-25Fix the interface of RSAKey.sign() to work as documented.Nick Mathewson
Also, remove the (unused) thandy.formats.Key
2009-08-25Allow tracking all bundles in the repository with thandy-clientSebastian Hahn
thandy-client now allows passing ** instead of a path for bundles. This is treated as a special case, other wild card or regular expression matching is not included.
2009-08-25All current versions of Thandy have length fieldsSebastian Hahn
2009-08-25Spelling fixes and import cleanupSebastian Hahn
2009-03-19Add lengths to the timestamp file.Nick Mathewson
This might break old clients, but AFAICT there are no clients running versions prior to 15 Dec. It's necessary to avoid some DOS attacks.
2009-01-22Fix multiple pychecker-spotted typos.Nick Mathewson
These are mostly typos in methods that don't get used in the current Thandy, error in error-handling paths, modules we imported unnecessarily, etc.
2008-12-21fix a "NameError: global name 'os' is not defined" complaint whenRoger Dingledine
making new packages or bundles. i think. git-svn-id: file:///home/or/svnrepo/updater/trunk@17713 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-12-15Implement lengths in thandy objects, mostly:Nick Mathewson
Accept them, and when they're present, don't fetch more bytes than specified, since that would be dangerous. Include lengths in every generated object type except for the timestamp, since that would break exising code. git-svn-id: file:///home/or/svnrepo/updater/trunk@17629 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-12-08Oops: actually commit the patch from this morning where I made Thandy not ↵Nick Mathewson
break. Maybe I _am_ still sick. git-svn-id: file:///home/or/svnrepo/updater/trunk@17516 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-12-01Add a possible workaround for coderman's Ubuntu's simplejson snafus. 1) ↵Nick Mathewson
Only use json instead of simplejson if json actually works. Apparently there is sometimes a json module that is not the kind of json module you get with python2.6. 2) Check to see if json thinks you should escape /, and try to override that "helpful" choice. git-svn-id: file:///home/or/svnrepo/updater/trunk@17422 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-30Generate new command formats, I believe.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17416 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-30Big thandy installation refactoring. Things should be saner now: we ↵Nick Mathewson
recognize that checking an item is sometimes orthogonal to installing it; we do not carry around big bits of unimplemented machinery; we actually document what stuff does in thandy-spec.txt; we do more OO in the places that make sense and less in the places that do not; and almost as an afterthought, we support the command installer type internally. Now all we need is a frontend to make command installers. git-svn-id: file:///home/or/svnrepo/updater/trunk@17414 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-22Fix a bug in userFilename that left us with a directory in ./~/. Add a ↵Nick Mathewson
facility for controller-readable log messages with --controller-log-format git-svn-id: file:///home/or/svnrepo/updater/trunk@17367 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-22Add a quick and dirty thandy-client json2xml command. I am going to regret ↵Nick Mathewson
this someday. git-svn-id: file:///home/or/svnrepo/updater/trunk@17366 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-21fix/document issues noted by arma in todo.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17350 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-20do not crash on exe_registry_entNick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17338 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-20actually look at the firmat line.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17331 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-17Add win32 registry support to thandy. untested.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17319 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-17document rpm and exe formats in example package configNick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17303 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-16Fix bundle download logic. Better fix needed.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17299 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-16attach per-file type-specific metainfo to packages. use metainfo to tell ↵Nick Mathewson
what is already installed. use database to track things we have installed with not attacked version. notice when we have installable files and optionally install them. git-svn-id: file:///home/or/svnrepo/updater/trunk@17294 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-11-16have some more thandy. This update includes a working downloader with tor ↵Nick Mathewson
support, a package system framework, and more. Most of what's left is glue code. git-svn-id: file:///home/or/svnrepo/updater/trunk@17288 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-15In python 2.6 and later, simplejson is built-in as json.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17112 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-15Checkpoint: s/glider/thandy/; s/sexp/json/Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17109 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Stop trying to monkeypatch simplejson to support canonical encoding, and ↵Nick Mathewson
just use our own internal canonical encoder when we want that. It is actually less code this way. git-svn-id: file:///home/or/svnrepo/updater/trunk@17104 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Fix another syntax errorNick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17099 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Usability fixes and cleanupsNick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17096 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Add some in-code documentation, fix some dead code, add a license, add a ↵Nick Mathewson
working distutils script. git-svn-id: file:///home/or/svnrepo/updater/trunk@17092 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Support older versions of simplejson.Nick Mathewson
git-svn-id: file:///home/or/svnrepo/updater/trunk@17090 55e972cd-5a19-0410-ae62-a4d7a52db4cd
2008-10-14Rename glider to thandy, based on discussions on #nottor. Please let me ↵Nick Mathewson
know ASAP if there is another program Thandy, or if it means something rude, or whatever. git-svn-id: file:///home/or/svnrepo/updater/trunk@17085 55e972cd-5a19-0410-ae62-a4d7a52db4cd