diff options
author | Tomas Touceda <chiiph@gentoo.org> | 2011-06-25 21:12:29 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@gentoo.org> | 2011-06-25 21:12:29 -0300 |
commit | 7fb9bb97c1f76e04b32b9b943abb725d7aa9adaa (patch) | |
tree | 291115c220c546391346bfda78d47eda255bdf75 /lib/thandy/repository.py | |
parent | 4e9e40f156aee7b4da7519ae1f71d3b1c32e375a (diff) |
Adds basic installation
Right now it's a bit more than just copying files, nothing else.
Diffstat (limited to 'lib/thandy/repository.py')
-rw-r--r-- | lib/thandy/repository.py | 11 |
1 files changed, 4 insertions, 7 deletions
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(): |