Skip to content

Commit

Permalink
Add self.builds to TinderboxScraper, adjust conditional to check for …
Browse files Browse the repository at this point in the history
…locale
  • Loading branch information
Nebelhom committed Aug 22, 2017
1 parent 934b730 commit 84317ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mozdownload/scraper.py
Expand Up @@ -743,6 +743,7 @@ def __init__(self, branch='mozilla-central', build_number=None, date=None,
"""Create instance of a tinderbox scraper."""
self.branch = branch
self.build_number = build_number
self.builds = []
self.debug_build = debug_build
self.date = date
self.revision = revision
Expand Down Expand Up @@ -823,7 +824,7 @@ def binary_regex(self):

def build_filename(self, binary):
"""Return the proposed filename with extension for the binary."""
if hasattr(self, 'builds'):
if not self.locale_build:
self.timestamp = self.builds[self.build_index]

return '%(TIMESTAMP)s%(BRANCH)s%(DEBUG)s-%(NAME)s' % {
Expand Down

0 comments on commit 84317ed

Please sign in to comment.