Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 5afe43eb3bd0fc1b21fa997c7606d754 > files > 1

tortoisehg-2.6.2-2.fc18.src.rpm

# HG changeset patch
# User Steve Borho <steve@borho.org>
# Date 1362690570 21600
# Branch stable
# Node ID e571f9b3eadc2e2706bd350dab33d3bee5bf2315
# Parent  6fbbe3d1974c267e5a30e4d9d1efc54a24fd1f35
qt: use int comparison for Qt and PyQt version check (fixes #2467)

backported to 2.4.3

diff -r 6fbbe3d1974c267e5a30e4d9d1efc54a24fd1f35 -r e571f9b3eadc2e2706bd350dab33d3bee5bf2315 tortoisehg/hgqt/qtlib.py
--- a/tortoisehg/hgqt/qtlib.py	Mon Mar 04 17:00:24 2013 -0600
+++ b/tortoisehg/hgqt/qtlib.py	Thu Mar 07 15:09:30 2013 -0600
@@ -25,9 +25,8 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
-if PYQT_VERSION_STR.split('.') < ['4', '7'] or \
-   QT_VERSION_STR.split('.') < ['4', '6']:
-    sys.stderr.write('TortoiseHg requires Qt 4.6 and PyQt 4.7\n')
+if PYQT_VERSION < 0x40600 or QT_VERSION < 0x40600:
+    sys.stderr.write('TortoiseHg requires Qt 4.6 and PyQt 4.6\n')
     sys.stderr.write('You have Qt %s and PyQt %s\n' %
                      (QT_VERSION_STR, PYQT_VERSION_STR))
     sys.exit()