aboutsummaryrefslogtreecommitdiff
path: root/hwpack
diff options
context:
space:
mode:
authorMichael Hudson <michael.hudson@linaro.org>2010-12-14 17:28:51 +1300
committerMichael Hudson <michael.hudson@linaro.org>2010-12-14 17:28:51 +1300
commitf34a93107e1e582f2a7a69a5c622993c5a8f790c (patch)
treedaec4e3a51ea6d5301e53dee5f8fd63bd8e580b6 /hwpack
parent78aa2a68c479f2046a407c6855bd63708fbc6005 (diff)
the fix
Diffstat (limited to 'hwpack')
-rw-r--r--hwpack/packages.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/hwpack/packages.py b/hwpack/packages.py
index 77ad592..7786db3 100644
--- a/hwpack/packages.py
+++ b/hwpack/packages.py
@@ -79,9 +79,14 @@ def stringify_relationship(pkg, relationship):
for or_alternative in or_dep.or_dependencies:
suffix = ""
if or_alternative.relation:
- suffix = " (%s %s)" % (
- or_alternative.relation,
- or_alternative.version)
+ relation = or_alternative.relation
+ if relation in ('<', '>'):
+ # The choice made here by python-apt is to report the
+ # relationship in a Python spelling; as far as apt
+ # knows, < is a deprecated spelling of <=; << is the
+ # spelling of "strictly less than". Similarly for >.
+ relation *= 2
+ suffix = " (%s %s)" % (relation, or_alternative.version)
or_list.append("%s%s" % (or_alternative.name, suffix))
relationship_list.append(" | ".join(or_list))
relationship_str = ", ".join(relationship_list)