Skip to content

Instantly share code, notes, and snippets.

@nthomas-mozilla
Created January 18, 2018 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nthomas-mozilla/2671a1a855537ff0e158ef0d29d116a1 to your computer and use it in GitHub Desktop.
Save nthomas-mozilla/2671a1a855537ff0e158ef0d29d116a1 to your computer and use it in GitHub Desktop.
funsize changes
diff --git a/taskcluster/docker/funsize-update-generator/scripts/funsize.py b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
--- a/taskcluster/docker/funsize-update-generator/scripts/funsize.py
+++ b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
@@ -161,19 +161,21 @@ class WorkEnv(object):
def download_buildsystem_bits(self, repo, revision):
prefix = "{repo}/raw-file/{revision}/tools/update-packaging"
prefix = prefix.format(repo=repo, revision=revision)
for f in ("make_incremental_update.sh", "common.sh"):
url = "{prefix}/{f}".format(prefix=prefix, f=f)
download(url, dest=os.path.join(self.workdir, f), mode=0o755)
def download_martools(self):
- # TODO: check if the tools have to be branch specific
- prefix = "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/" \
- "latest-mozilla-central/mar-tools/linux64"
+ prefix = os.environ.get('MAR_TOOLS_URL', '')
+ if len(prefix) == 0:
+ log.warning('Using mbsdiff and mar utilities from the tip of mozilla-central')
+ prefix = "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/" \
+ "latest-mozilla-central/mar-tools/linux64"
for f in ("mar", "mbsdiff"):
url = "{prefix}/{f}".format(prefix=prefix, f=f)
download(url, dest=os.path.join(self.workdir, f), mode=0o755)
def cleanup(self):
shutil.rmtree(self.workdir)
@property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment