in mozdownload/scraper.py [0:0]
def build_filename(self, binary):
"""Return the proposed filename with extension for the binary."""
template = '%(APP)s-%(VERSION)s-%(BUILD)s.%(LOCALE)s.' \
'%(PLATFORM)s%(STUB)s.%(EXT)s'
return template % {'APP': self.application,
'VERSION': self.version,
'BUILD': self.builds[self.build_index],
'LOCALE': self.locale,
'PLATFORM': self.platform,
'STUB': '-stub' if self.is_stub_installer else '',
'EXT': self.get_file_extension(binary)}