Skip to content

Commit

Permalink
Moved nightly versioning to after CLI parse, as it was getting overwr…
Browse files Browse the repository at this point in the history
…itten in version was specified after nightly.
  • Loading branch information
Ross McDonald committed Feb 5, 2016
1 parent f50749e commit 627be11
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,6 @@ def main():
elif '--nightly' in arg:
# Signifies that this is a nightly build.
nightly = True
# In order to cleanly delineate nightly version, we are adding the epoch timestamp
# to the version so that version numbers are always greater than the previous nightly.
version = "{}.n{}".format(version, int(time.time()))
elif '--update' in arg:
# Signifies that dependencies should be updated.
update = True
Expand Down Expand Up @@ -740,7 +737,15 @@ def main():
if nightly and rc:
print "!! Cannot be both nightly and a release candidate! Stopping."
return 1


if nightly:
# In order to cleanly delineate nightly version, we are adding the epoch timestamp
# to the version so that version numbers are always greater than the previous nightly.
version = "{}.n{}".format(version, int(time.time()))
iteration = 0
elif rc:
iteration = 0

# Pre-build checks
check_environ()
check_prereqs()
Expand All @@ -758,9 +763,6 @@ def main():
target_arch = system_arch
if not target_platform:
target_platform = get_system_platform()
if rc or nightly:
# If a release candidate or nightly, set iteration to 0 (instead of 1)
iteration = 0

if target_arch == '386':
target_arch = 'i386'
Expand Down

0 comments on commit 627be11

Please sign in to comment.