[Commits] (markie) Refined getVersion
commits at osafoundation.org
commits at osafoundation.org
Sat Apr 24 14:11:00 PDT 2004
Commit by: markie
Modified files:
osaf/hardhat/buildscripts/chandler-newbuild.py 1.14 1.15
Log message:
Refined getVersion
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/hardhat/buildscripts/chandler-newbuild.py.diff?r1=text&tr1=1.14&r2=text&tr2=1.15
Index: osaf/hardhat/buildscripts/chandler-newbuild.py
diff -u osaf/hardhat/buildscripts/chandler-newbuild.py:1.14 osaf/hardhat/buildscripts/chandler-newbuild.py:1.15
--- osaf/hardhat/buildscripts/chandler-newbuild.py:1.14 Sat Apr 24 13:28:47 2004
+++ osaf/hardhat/buildscripts/chandler-newbuild.py Sat Apr 24 14:10:28 2004
@@ -398,12 +398,17 @@
input = open(fileToRead, "r")
line = input.readline()
while line:
- m=re.match('VERSION=(.*)', line)
- if not m == 'None':
- version = m.group(1)
- input.close()
- return version
+ if line == "\n":
+ line = input.readline()
+ continue
+ else:
+ m=re.match('VERSION=(.*)', line)
+ if not m == 'None' or m == 'NoneType':
+ version = m.group(1)
+ input.close()
+ return version
line = input.readline()
input.close()
return 'No Version'
+
More information about the Commits
mailing list