summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@gentoo.org>2011-06-24 09:38:06 -0300
committerTomas Touceda <chiiph@gentoo.org>2011-06-24 09:38:06 -0300
commit762297dd1a1ab28709b551a93260e5dea824dd3d (patch)
tree0a03fadb1cf396d68376986323d8abfb40c7bc9f
parent245d58049c1657ec5116b0e3598c83a82d11a69a (diff)
Correct some silly errors
-rw-r--r--lib/thandy/ClientCLI.py4
-rw-r--r--lib/thandy/repository.py6
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.