Fixed package version

This commit is contained in:
Joseph Coffland 2014-04-09 09:56:49 -07:00
parent 253b1e0731
commit e1887696c0
2 changed files with 7 additions and 4 deletions

View File

@ -16,11 +16,14 @@ conf = env.CBConfigure()
# Version
try:
version = env.FAHClientVersion()
except:
except Exception, e:
print e
version = '0.0.0'
env.Replace(PACKAGE_VERSION = version)
# Config vars
env.Replace(PACKAGE_VERSION = version)
f = open('version.txt', 'w')
f.write(version)
f.close()
if env['PLATFORM'] != 'darwin': env['package_arch'] = 'noarch'

View File

@ -80,7 +80,7 @@ else:
)
try:
version = open('version/version.txt').read().strip()
version = open('version.txt').read().strip()
except: version = None
if version is not None: