summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-07-07 10:09:22 +0900
committerSean Whitton <spwhitton@spwhitton.name>2016-07-07 10:10:26 +0900
commit1ef0e45246ba9e24b76597f1023ee16b877eb0d1 (patch)
treeee65d8ce0b175472d5a47c42e4157d77d9ffe7c2
parent3154b112cec3fb1069aa40e938b8dd7eba43da17 (diff)
dh_xul-ext: get_epoch readability
-rwxr-xr-xdh_xul-ext13
1 files changed, 7 insertions, 6 deletions
diff --git a/dh_xul-ext b/dh_xul-ext
index d68a95c..9f1450e 100755
--- a/dh_xul-ext
+++ b/dh_xul-ext
@@ -51,13 +51,14 @@ class XulApp(object):
def get_epoch(self, version):
"""
- Check wether a version needs an epoch
+ Check whether a version needs an epoch
"""
- if (get_vendor() == 'Debian' and
- self.xul_id == THUNDERBIRD_ID and
- compare_versions(version, "45") >= 0):
- return 1
- return 0
+ if (get_vendor() == 'Debian'
+ and self.xul_id == THUNDERBIRD_ID
+ and compare_versions(version, "45") >= 0):
+ return 1
+ else:
+ return 0
def defaults_to_compatible(self):
"""Returns true if the maximum and all later versions of the XUL