Include proper vesion file in tarball and fix reading thereof.

This commit is contained in:
Michael Gorven 2010-02-23 17:45:06 +02:00
parent b80bfb5a80
commit a0e56c0d85
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,4 @@ recursive-include resources/images *
recursive-include scripts *.py
include copyright.txt
include LICENSE
include version.txt
include openlp/.version

View File

@ -25,7 +25,7 @@ try:
finally:
b.unlock()
except:
ver_file = open(VERSION_FILE, u'w')
ver_file = open(VERSION_FILE, u'r')
version = ver_file.read().strip()
ver_file.close()