CC-2256 Airtime-upgrade.php does not upgrade the web app

need to check only a substring of the version constant.
This commit is contained in:
Naomi 2011-05-17 10:36:14 -04:00
parent 70355cc364
commit 188f065f4f

View file

@ -196,7 +196,7 @@ class AirTimeApiClient(ApiClientInterface):
print 'Unable to get Airtime version number.' print 'Unable to get Airtime version number.'
print print
return False return False
elif (version[0:3] != AIRTIME_VERSION): elif (version[0:3] != AIRTIME_VERSION[0:3]):
if (verbose): if (verbose):
print 'Airtime version found: ' + str(version) print 'Airtime version found: ' + str(version)
print 'pypo is at version ' +AIRTIME_VERSION+' and is not compatible with this version of Airtime.' print 'pypo is at version ' +AIRTIME_VERSION+' and is not compatible with this version of Airtime.'