Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
merge default -> production
Browse files Browse the repository at this point in the history
--HG--
branch : production
  • Loading branch information
escapewindow committed Jan 29, 2013
2 parents 2f8447a + f546661 commit ae47bc6
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions scripts/b2g_build.py
Expand Up @@ -8,6 +8,7 @@
import tempfile
from datetime import datetime
import urllib2
import urlparse
import time
import xml.dom.minidom

Expand Down Expand Up @@ -40,12 +41,6 @@
]
B2GMakefileErrorList.insert(0, {'substr': r'/bin/bash: java: command not found', 'level': WARNING})

try:
import simplejson as json
assert json
except ImportError:
import json


class B2GBuild(LocalesMixin, MockMixin, BaseScript, VCSMixin, TooltoolMixin, TransferMixin,
BuildbotMixin, PurgeMixin, GaiaLocalesMixin, SigningMixin):
Expand Down Expand Up @@ -543,11 +538,13 @@ def update_source_manifest(self):
git_base_url = "https://git.mozilla.org/"
for element in dom.getElementsByTagName('remote'):
if element.getAttribute('name') == 'mozillaorg':
git_base_url = element.getAttribute('fetch')
if not git_base_url.endswith('/'):
git_base_url += "/"
self.info("Found git_base_url of %s in manifest." % git_base_url)
break
pieces = urlparse.urlparse(element.getAttribute('fetch'))
if pieces:
git_base_url = "https://git.mozilla.org%s" % pieces[2]
if not git_base_url.endswith('/'):
git_base_url += "/"
self.info("Found git_base_url of %s in manifest." % git_base_url)
break
else:
self.warning("Couldn't find git_base_url in manifest; using %s" % git_base_url)
new_sources = []
Expand All @@ -564,7 +561,7 @@ def update_source_manifest(self):
if self.query_do_translate_hg_to_git():
url = manifest_config['translate_base_url']
gecko_git = self.query_translated_revision(url, 'gecko', self.buildbot_properties['revision'])
gaia_git = self.query_translated_revision(url, 'gaia', self.buildbot_properties['gaia_revision'])
gaia_git = self.query_translated_revision(url, 'gaia', self.buildbot_properties['gaia_revision'])
new_sources.append(' <project name="%s" path="gecko" remote="mozillaorg" revision="%s"/>' % ("https://git.mozilla.org/releases/gecko.git".replace(git_base_url, ''), gecko_git))
new_sources.append(' <project name="%s" path="gaia" remote="mozillaorg" revision="%s"/>' % ("https://git.mozilla.org/releases/gaia.git".replace(git_base_url, ''), gaia_git))

Expand All @@ -577,7 +574,7 @@ def update_source_manifest(self):
new_sources.extend(self._generate_locale_manifest())

self.write_to_file(sourcesfile, "\n".join(new_sources), verbose=False)
self.run_command(["diff", "-u", sourcesfile_orig, sourcesfile], success_codes = [1])
self.run_command(["diff", "-u", sourcesfile_orig, sourcesfile], success_codes=[1])

def build(self):
dirs = self.query_abs_dirs()
Expand Down

0 comments on commit ae47bc6

Please sign in to comment.