Index: tools/upload_sdk.py |
=================================================================== |
--- tools/upload_sdk.py (revision 2110) |
+++ tools/upload_sdk.py (working copy) |
@@ -12,6 +12,7 @@ |
import utils |
+ACL = '~/slave_archive_acl' |
GSUTIL = '/b/build/scripts/slave/gsutil' |
GS_SITE = 'gs://' |
GS_DIR = 'dartium-archive' |
@@ -39,6 +40,12 @@ |
return status |
print 'Uploaded: ' + output[0] |
+ # Set ACL. |
+ if ACL is not None: |
+ cmd = [GSUTIL, 'setacl', ACL, target] |
+ (status, output) = ExecuteCommand(cmd) |
+ return status |
+ |
def GetSVNRevision(): |
p = subprocess.Popen(['svn', 'info'], stdout = subprocess.PIPE, |
stderr = subprocess.STDOUT, close_fds=True) |