summaryrefslogtreecommitdiff
path: root/lib/thandy/repository.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@torproject.org>2011-09-02 20:44:53 -0300
committerTomás Touceda <chiiph@torproject.org>2011-09-02 20:44:53 -0300
commitf04c3429dc33c9bcadfe8a3707f8646690838db8 (patch)
tree101a178256e71c5aba0d960c00181298be61f464 /lib/thandy/repository.py
parent40b3a86a82054c88f5865cef9b8d7fff8486f768 (diff)
Fix behavior for bundles with more than one thp and add thp
Diffstat (limited to 'lib/thandy/repository.py')
-rwxr-xr-xlib/thandy/repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py
index bb7d2f6..20a1e9a 100755
--- a/lib/thandy/repository.py
+++ b/lib/thandy/repository.py
@@ -493,9 +493,9 @@ class LocalRepository:
packages[rp] = pfile
if pfile_data["format"] == "thp":
- thpTransactionDict[bundle['name']] = {}
+ if not bundle['name'] in thpTransactionDict.keys():
+ thpTransactionDict[bundle['name']] = {}
thpTransactionDict[bundle['name']][pfile_data['name']] = pfile_data
- continue
# We have the packages. If we're downloading via bittorrent, we need
# the .torrent metafiles, as well.