[seahorse-nautilus] Build: make sure we compare ints in GPG version check
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse-nautilus] Build: make sure we compare ints in GPG version check
- Date: Sat, 16 Dec 2017 14:06:54 +0000 (UTC)
commit b00c3e501b071cfaac9b811a23f00efc46e45c1c
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Dec 16 15:05:52 2017 +0100
Build: make sure we compare ints in GPG version check
meson/gpg_check_version.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson/gpg_check_version.py b/meson/gpg_check_version.py
index b3481b3..4f1ccaf 100755
--- a/meson/gpg_check_version.py
+++ b/meson/gpg_check_version.py
@@ -13,8 +13,8 @@ def parse_version(gpg_output):
# For GPG, this means that the major and minor version should be equal;
# for GPGME, this means only the major version should be equal.
def check_version(gpg_version, accepted_version, is_gpgme = False):
- gpg_major, gpg_minor, gpg_micro = gpg_version.split('.', 2)
- acc_major, acc_minor, acc_micro = accepted_version.split('.', 2)
+ gpg_major, gpg_minor, gpg_micro = [int(ver) for ver in gpg_version.split('.', 2)]
+ acc_major, acc_minor, acc_micro = [int(ver) for ver in accepted_version.split('.', 2)]
if is_gpgme:
return gpg_major == acc_major and gpg_minor >= acc_minor and gpg_micro >= acc_micro
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]