Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Unified Diff: tools/upload_sdk.py

Issue 8819002: Set ACL on SDK. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698