summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJJ Linden <jj@lindenlab.com>2014-02-21 11:59:17 -0800
committerJJ Linden <jj@lindenlab.com>2014-02-21 11:59:17 -0800
commit0abdab7848b6fb02c2600e74774426acc6bf5ef6 (patch)
treed80ff327f5e90dfa0201bfc349ed6f07bfd781c5
parent251bf8ceca2af09d7b6aa7dbdc6178bf8f01afff (diff)
changed variable names and errors to more accurately reflect the operation being performed
-rwxr-xr-xindra/newview/viewer_manifest.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 85d18b7789..fe0774b409 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -622,21 +622,21 @@ class Windows_i686_Manifest(ViewerManifest):
NSIS_path = os.path.expandvars('${ProgramFiles}\\NSIS\\Unicode\\makensis.exe')
if not os.path.exists(NSIS_path):
NSIS_path = os.path.expandvars('${ProgramFiles(x86)}\\NSIS\\Unicode\\makensis.exe')
- signed=False
- sign_attempts=3
- sign_retry_wait=15
- while (not signed) and (sign_attempts > 0):
+ installer_created=False
+ nsis_attempts=3
+ nsis_retry_wait=15
+ while (not installer_created) and (nsis_attempts > 0):
try:
- sign_attempts-=1;
+ nsis_attempts-=1;
self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile))
- signed=True # if no exception was raised, the codesign worked
+ installer_created=True # if no exception was raised, the codesign worked
except ManifestError, err:
- if sign_attempts:
- print >> sys.stderr, "codesign failed, waiting %d seconds before retrying" % sign_retry_wait
- time.sleep(sign_retry_wait)
- sign_retry_wait*=2
+ if nsis_attempts:
+ print >> sys.stderr, "nsis failed, waiting %d seconds before retrying" % nsis_retry_wait
+ time.sleep(nsis_retry_wait)
+ nsis_retry_wait*=2
else:
- print >> sys.stderr, "Maximum codesign attempts exceeded; giving up"
+ print >> sys.stderr, "Maximum nsis attempts exceeded; giving up"
raise
# self.remove(self.dst_path_of(tempfile))
# If we're on a build machine, sign the code using our Authenticode certificate. JC