From 7fb9bb97c1f76e04b32b9b943abb725d7aa9adaa Mon Sep 17 00:00:00 2001 From: Tomas Touceda Date: Sat, 25 Jun 2011 21:12:29 -0300 Subject: Adds basic installation Right now it's a bit more than just copying files, nothing else. --- lib/thandy/repository.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/thandy/repository.py') diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index d082afb..f0b51b8 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -456,7 +456,6 @@ class LocalRepository: # Okay. So we have some bundles. See if we have their packages. packages = {} - thpBundle = False for bfile in bundles.values(): bundle = bfile.get() for pkginfo in bundle['packages']: @@ -489,16 +488,14 @@ class LocalRepository: # We assume that if there is one thp package then all the rest # are thp too. But we continue with the loop to check every # package digest and signature - if thpBundle or pfile.get()["format"] == "thp": - thpBundle = True + pfile_data = pfile.get() + if pfile_data["format"] == "thp": + thpTransactionDict[bundle['name']] = {} + thpTransactionDict[bundle['name']][pfile_data['name']] = pfile_data continue packages[rp] = pfile - if thpBundle: - thpTransactionDict[bundle['name']] = bundle['packages'] - thpBundle = False - # We have the packages. If we're downloading via bittorrent, we need # the .torrent metafiles, as well. if thandy.bt_compat.BtCompat.shouldUseBt(): -- cgit v1.2.3