Small changes to make python script work more often.

This commit is contained in:
U-BASIS\ajacks 2014-01-09 14:23:56 -05:00
parent aacefa5f49
commit ceeb26322d

7
update_versions.py Normal file → Executable file
View File

@ -114,9 +114,8 @@ class Spec:
self.third = None
spec_nums = num.split(".")
if len(spec_nums) == 3:
final = spec_nums[2]
self.third = int(final)
self.final = spec_nums[2]
self.third = int(self.final)
l, r = spec_nums[0], spec_nums[1]
self.left = int(l)
@ -846,7 +845,6 @@ def usage():
def main():
global tag; global source; global docdir; global dry
tag = None; source = None; docdir = None; dry = True
ret = args()
if ret:
print(usage())
@ -868,7 +866,6 @@ def main():
if not do_git(tag, tag_dir):
return 1
sys.stdout.flush()
tag_modules = find_modules(tag_dir)
source_modules = find_modules(source)