summaryrefslogtreecommitdiff
path: root/dh_xul-ext
diff options
context:
space:
mode:
Diffstat (limited to 'dh_xul-ext')
-rwxr-xr-xdh_xul-ext15
1 files changed, 14 insertions, 1 deletions
diff --git a/dh_xul-ext b/dh_xul-ext
index 6876988..e995174 100755
--- a/dh_xul-ext
+++ b/dh_xul-ext
@@ -44,13 +44,26 @@ class XulApp(object):
return self.xul_id + ": " + self.package + " (" + self.sol + " to " + \
self.eol + ")"
+ def defaults_to_compatible(self):
+ """Returns true if the maximum and all later versions of the XUL
+ application defaults add-ons to compatible. The XUL extension will be
+ enabled even if the version of the XUL application is higher than the
+ specified maximum version in this case.
+
+ Firefox/Iceweasel 10 defaults add-ons to compatible."""
+
+ if self.xul_id == "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" and \
+ compare_versions(self.max_version, "10") >= 0:
+ return True
+ return False
+
def get_breaks(self):
"""Return a string for ${xpi:Breaks} for the XUL application."""
breaks = []
if self.min_version:
deb_min_version = convert_moz_to_debian_version(self.min_version)
breaks.append(self.package + " (<< " + deb_min_version + ")")
- if self.max_version:
+ if self.max_version and not self.defaults_to_compatible():
deb_max_version = moz_to_next_debian_version(self.max_version)
breaks.append(self.package + " (>> " + deb_max_version + ")")
return ", ".join(breaks)