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

Unified Diff: chrome/common/extensions/docs/server2/branch_utility.py

Issue 10500004: Die build.py, Die: Part 2 (LocalFetcher, Handlebar support, build script) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: TemplateFetcher now has dictionary interface Created 8 years, 6 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
Index: chrome/common/extensions/docs/server2/branch_utility.py
diff --git a/chrome/common/extensions/docs/server2/branch_utility.py b/chrome/common/extensions/docs/server2/branch_utility.py
index a395fc45c8b34c98099fa37f170799e28e9e2fc3..5d386ebba205ed1d7b7c3e787651d9209ba9f7ef 100644
--- a/chrome/common/extensions/docs/server2/branch_utility.py
+++ b/chrome/common/extensions/docs/server2/branch_utility.py
@@ -18,7 +18,7 @@ class BranchUtility(object):
def GetChannelNameFromPath(self, path):
first_part = path.split('/')[0]
- if first_part in ['trunk', 'dev', 'beta', 'stable']:
+ if first_part in ['trunk', 'dev', 'beta', 'stable', 'local']:
return first_part
else:
return 'stable'
@@ -27,8 +27,8 @@ class BranchUtility(object):
"""Returns an empty string if the branch number cannot be found.
Throws exception on network errors.
"""
- if channel_name == 'trunk':
- return 'trunk'
+ if channel_name == 'trunk' or channel_name == 'local':
+ return channel_name
fetch_data = self.urlfetch.fetch(self.omaha_proxy_url)
if fetch_data.content == '':

Powered by Google App Engine
This is Rietveld 408576698