[Pkg-mozext-commits] [mozilla-devscripts] 04/08: dh_xul-ext: get_epoch readability
Sean Whitton
spw-guest at moszumanska.debian.org
Thu Jul 7 02:31:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
spw-guest pushed a commit to annotated tag debian/0.46
in repository mozilla-devscripts.
commit 1ef0e45246ba9e24b76597f1023ee16b877eb0d1
Author: Sean Whitton <spwhitton at spwhitton.name>
Date: Thu Jul 7 10:09:22 2016 +0900
dh_xul-ext: get_epoch readability
---
dh_xul-ext | 13 +++++++------
1 file 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/mozilla-devscripts.git
More information about the Pkg-mozext-commits
mailing list