From 82d945297bf9ef644bc3c89a98603765739ba34c Mon Sep 17 00:00:00 2001
From: James Cook <james@lindenlab.com>
Date: Wed, 4 Mar 2009 18:53:18 +0000
Subject: [PATCH] Fix problem with code signing script (sign.py) not being
 invoked properly on some systems.  Changed "sign.py filename" to "python
 sign.py filename".  Reviewed with bos and kelly.

---
 indra/newview/viewer_manifest.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index c79c2aedf1d..debbcd7e3bf 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -386,7 +386,10 @@ def package_finish(self):
         # If we're on a build machine, sign the code using our Authenticode certificate. JC
         sign_py = 'C:\\buildscripts\\code-signing\\sign.py'
         if os.path.exists(sign_py):
-            self.run_command(sign_py + ' ' + self.dst_path_of(installer_file))
+            # Appears to require the "python" command to pass a proper argv
+            # to the script, but only on certain systems.  JC
+            self.run_command('python ' + sign_py + ' ' +
+                    self.dst_path_of(installer_file))
         else:
             print "Skipping code signing,", sign_py, "does not exist"
         self.created_path(self.dst_path_of(installer_file))
-- 
GitLab