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

Unified Diff: tools/bots/bot_utils.py

Issue 197313010: Initial refactorings to support archiving the src and debian package builds. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 months 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 | « tools/bots/bot.py ('k') | tools/bots/src-tarball.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
===================================================================
--- tools/bots/bot_utils.py (revision 33696)
+++ tools/bots/bot_utils.py (working copy)
@@ -7,6 +7,7 @@
import hashlib
import imp
import os
+import string
import subprocess
import sys
@@ -312,3 +313,11 @@
f.write('%s *%s' % (checksum, mangled_filename))
return checksum_filename
+
+def GetChannelFromName(name):
+ """Get the channel from the name. Bleeding edge builders don't
+ have a suffix."""
+ channel_name = string.split(name, '-').pop()
+ if channel_name in Channel.ALL_CHANNELS:
+ return channel_name
+ return Channel.BLEEDING_EDGE
« no previous file with comments | « tools/bots/bot.py ('k') | tools/bots/src-tarball.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698