summaryrefslogtreecommitdiff
path: root/lib/thandy/repository.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@torproject.org>2011-09-01 23:50:54 -0300
committerTomás Touceda <chiiph@torproject.org>2011-09-01 23:50:54 -0300
commitf3602b42ad6db5918323c3b3be1c0d4c335e9c61 (patch)
tree3ce2aa1308c18b7f9efb0a8e08494a83f7105b68 /lib/thandy/repository.py
parentc288511871e2f90016ae7782d55451cbcffe5d5e (diff)
Log with loggin instead of print, and add thp files to download when needed
Diffstat (limited to 'lib/thandy/repository.py')
-rwxr-xr-xlib/thandy/repository.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py
index f0b51b8..bb7d2f6 100755
--- a/lib/thandy/repository.py
+++ b/lib/thandy/repository.py
@@ -489,13 +489,14 @@ class LocalRepository:
# are thp too. But we continue with the loop to check every
# package digest and signature
pfile_data = pfile.get()
+
+ packages[rp] = pfile
+
if pfile_data["format"] == "thp":
thpTransactionDict[bundle['name']] = {}
thpTransactionDict[bundle['name']][pfile_data['name']] = pfile_data
continue
- packages[rp] = pfile
-
# We have the packages. If we're downloading via bittorrent, we need
# the .torrent metafiles, as well.
if thandy.bt_compat.BtCompat.shouldUseBt():
@@ -524,7 +525,7 @@ class LocalRepository:
# files?
for pfile in packages.values():
package = pfile.get()
-
+
alreadyInstalled = set()
pkgItems = {}