commit 762297dd1a1ab28709b551a93260e5dea824dd3d Author: Tomas Touceda chiiph@gentoo.org Date: Fri Jun 24 09:38:06 2011 -0300
Correct some silly errors --- lib/thandy/ClientCLI.py | 4 ++-- lib/thandy/repository.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/thandy/ClientCLI.py b/lib/thandy/ClientCLI.py index 97951b4..6a78bf6 100644 --- a/lib/thandy/ClientCLI.py +++ b/lib/thandy/ClientCLI.py @@ -128,7 +128,7 @@ def update(args): lengthDict=lengths, usePackageSystem=use_packagesys, installableDict=installable, - btMetadataDict=btMetadata + btMetadataDict=btMetadata, thpTransactionDict=thpTransactions)
if forceCheck: @@ -157,7 +157,7 @@ def update(args): print "Bundles with all THP packages:" for bundle in thpTransactions: # TODO: ThpTransaction goes here! - print bundle + print thpTransactions[bundle]
return
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index 1bc1ce4..ab1c356 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -456,7 +456,7 @@ class LocalRepository:
# Okay. So we have some bundles. See if we have their packages. packages = {} - thpbundle = False + thpBundle = False for bfile in bundles.values(): bundle = bfile.get() for pkginfo in bundle['packages']: @@ -489,7 +489,7 @@ 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 thpBunle or pfile.get("format") == "thp": + if thpBundle or pfile.get()["format"] == "thp": thpBundle = True continue
@@ -578,7 +578,7 @@ class LocalRepository: # value and just use installableDict from the caller. if pkgItems.has_key(rp): if pkgItems[rp]: - installableDict.setdefault(pkg_rp, {})[rp] = pkgItems[rp] + installableDict.setdefault(pkg_rp, {})[rp] = pkgItems[rp]
# Okay; these are the files we need.
tor-commits@lists.torproject.org