summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-11-28 21:05:45 (GMT)
committerJohn (J5) Palmieri <johnp@redhat.com>2011-11-28 21:05:45 (GMT)
commit4ff111704b89762826ac35a1ced14e701e8e0316 (patch)
tree0b763565e3a3ed07a03cb80541124b49172ee30c
parent61ead5cfb3d2944ba35486ec3c62765d16d0ae9d (diff)
downloadfedoracommunity-4ff111704b89762826ac35a1ced14e701e8e0316.zip
fedoracommunity-4ff111704b89762826ac35a1ced14e701e8e0316.tar.gz
fedoracommunity-4ff111704b89762826ac35a1ced14e701e8e0316.tar.xz
fix some typos in the koji connector
-rw-r--r--fedoracommunity/connectors/kojiconnector.py28
1 files changed, 13 insertions, 15 deletions
diff --git a/fedoracommunity/connectors/kojiconnector.py b/fedoracommunity/connectors/kojiconnector.py
index 31bae56..bbded2a 100644
--- a/fedoracommunity/connectors/kojiconnector.py
+++ b/fedoracommunity/connectors/kojiconnector.py
@@ -765,18 +765,16 @@ class KojiConnector(IConnector, ICall, IQuery):
elif flags & rpm.RPMSENSE_LESS:
op = "<"
if flags & rpm.RPMSENSE_EQUAL:
- if op:
- op += "="
- else:
- op == "=="
- ops.append(op)
+ op += "="
+
+ provides_ops.append(op)
total_rows = len(provides_names)
rows = []
for i in range(start_row, start_row + rows_per_page):
if i >= total_rows:
break
- row.append({'name': provides_names[i],
+ rows.append({'name': provides_names[i],
'version': provides_versions[i],
'flags': provides_flags[i],
'ops': provides_ops[i]
@@ -851,15 +849,15 @@ class KojiConnector(IConnector, ICall, IQuery):
if op:
op += "="
else:
- op == "=="
- ops.append(op)
+ op = "="
+ requires_ops.append(op)
total_rows = len(requires_names)
rows = []
for i in range(start_row, start_row + rows_per_page):
if i >= total_rows:
break
- row.append({'name': requires_names[i],
+ rows.append({'name': requires_names[i],
'version': requires_versions[i],
'flags': requires_flags[i],
'ops': requires_ops[i]
@@ -935,8 +933,8 @@ class KojiConnector(IConnector, ICall, IQuery):
if op:
op += "="
else:
- op == "=="
- ops.append(op)
+ op = "="
+ obsoletes_ops.append(op)
total_rows = len(obsoletes_names)
rows = []
@@ -944,7 +942,7 @@ class KojiConnector(IConnector, ICall, IQuery):
if i >= total_rows:
break
- row.append({'name': obsoletes_names[i],
+ rows.append({'name': obsoletes_names[i],
'version': obsoletes_versions[i],
'flags': obsoletes_flags[i],
'ops': obsoletes_ops[i]
@@ -1020,15 +1018,15 @@ class KojiConnector(IConnector, ICall, IQuery):
if op:
op += "="
else:
- op == "=="
- ops.append(op)
+ op = "="
+ conflicts_ops.append(op)
total_rows = len(conflict_names)
rows = []
for i in range(start_row, start_row + rows_per_page):
if i >= total_rows:
break
- row.append({'name': conflicts_names[i],
+ rows.append({'name': conflicts_names[i],
'version': conflicts_versions[i],
'flags': conflicts_flags[i],
'ops': conflicts_ops[i]