mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:41:41 +00:00
Don't promote the eclipse plugins, we don't ship these from our main repo
Also, change the sanity check, we no longer use integer revisions on dev/stable R=whesse@google.com BUG= Review URL: https://codereview.chromium.org//1157363002
This commit is contained in:
parent
2e35540ad7
commit
1706e033af
|
@ -103,7 +103,7 @@ def _PromoteDartArchiveBuild(channel, revision):
|
|||
|
||||
def promote(to_revision):
|
||||
def safety_check_on_gs_path(gs_path, revision, channel):
|
||||
if not ((revision == 'latest' or int(revision) > 0)
|
||||
if not (revision != None
|
||||
and len(channel) > 0
|
||||
and ('%s' % revision) in gs_path
|
||||
and channel in gs_path):
|
||||
|
@ -137,12 +137,6 @@ def _PromoteDartArchiveBuild(channel, revision):
|
|||
remove_gs_directory(to_loc)
|
||||
Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc])
|
||||
|
||||
# Copy eclipse update directory.
|
||||
from_loc = raw_namer.editor_eclipse_update_directory(revision)
|
||||
to_loc = release_namer.editor_eclipse_update_directory(to_revision)
|
||||
remove_gs_directory(to_loc)
|
||||
Gsutil(['-m', 'cp', '-a', 'public-read', '-R', from_loc, to_loc])
|
||||
|
||||
# Copy api-docs zipfile.
|
||||
from_loc = raw_namer.apidocs_zipfilepath(revision)
|
||||
to_loc = release_namer.apidocs_zipfilepath(to_revision)
|
||||
|
@ -166,7 +160,6 @@ def _PromoteDartArchiveBuild(channel, revision):
|
|||
to_loc = release_namer.version_filepath(to_revision)
|
||||
Gsutil(['cp', '-a', 'public-read', from_loc, to_loc])
|
||||
|
||||
|
||||
promote(revision)
|
||||
promote('latest')
|
||||
|
||||
|
|
Loading…
Reference in a new issue