Skip to content

Commit

Permalink
Move timestamp assignment to get_build_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebelhom committed Sep 22, 2017
1 parent 7d8cb2a commit 7bdceea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mozdownload/scraper.py
Expand Up @@ -800,6 +800,7 @@ def get_build_info(self):
if not self.locale_build:
self.builds, self.build_index = self.get_build_info_for_index(
self.build_index)
self.timestamp = self.builds[self.build_index]

@property
def binary_regex(self):
Expand All @@ -823,8 +824,6 @@ def binary_regex(self):

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

return '%(TIMESTAMP)s%(BRANCH)s%(DEBUG)s-%(NAME)s' % {
'TIMESTAMP': self.timestamp + '-' if self.timestamp else '',
Expand Down

0 comments on commit 7bdceea

Please sign in to comment.