diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-21 17:25:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-21 17:25:03 +0000 |
commit | ea6f940dcf304b56ab4fcd724659358aa6a9e6a8 (patch) | |
tree | 12d828c35f63dd451fecc9d3adbd4e94ffeab37c | |
parent | 85f223019c6a1b285305f72185cbb7d3079f3d74 (diff) |
packageLen was meant to be a name-to-length dictionary, not an int.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17715 55e972cd-5a19-0410-ae62-a4d7a52db4cd
-rw-r--r-- | lib/thandy/SignerCLI.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/thandy/SignerCLI.py b/lib/thandy/SignerCLI.py index b3e4a8b..f7a8472 100644 --- a/lib/thandy/SignerCLI.py +++ b/lib/thandy/SignerCLI.py @@ -98,11 +98,12 @@ def makebundle(args): f = open(pkgFile, 'r') p = json.load(f) f.close() - packageLen = os.stat(pkgFile).st_size + length = os.stat(pkgFile).st_size _, r, _ = thandy.formats.checkSignedObj(p) if r != 'package': print pkgFile, "was not a package" packages[p['signed']['name']] = p['signed'] + packageLen[p['signed']['name'] = length bundleObj = thandy.formats.makeBundleObj(configFile, packages.__getitem__, packageLen.__getitem__) |