def build_filename()

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.%(LOCALE)s.%(PLATFORM)s%(STUB)s' \
                   '.%(EXT)s'
        return template % {'APP': self.application,
                           'VERSION': self.version,
                           'LOCALE': self.locale,
                           'PLATFORM': self.platform,
                           'STUB': '-stub' if self.is_stub_installer else '',
                           'EXT': self.get_file_extension(binary)}