Skip to content

Commit

Permalink
Builder|Fixed: Determine event timestamp based on file modtime
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 16, 2012
1 parent 33ac8ad commit dedc38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions distrib/autobuild.py
Expand Up @@ -94,9 +94,11 @@ def todays_platform_release():

def find_previous_tag(toTag, version):
builds = builder.events_by_time()
#print [(e[1].number(), e[1].timestamp()) for e in builds]
i = 0
while i < len(builds):
ev = builds[i][1]
print ev.tag(), ev.version(), ev.timestamp()
if ev.tag() != toTag and (ev.version() is None or version is None or
ev.version().startswith(version)):
# This is good.
Expand Down
4 changes: 2 additions & 2 deletions distrib/builder/event.py
Expand Up @@ -130,8 +130,8 @@ def timestamp(self):

for fn in os.listdir(self.buildDir):
t = os.stat(os.path.join(self.buildDir, fn))
if int(t.st_ctime) < oldest:
oldest = int(t.st_ctime)
if int(t.st_mtime) < oldest:
oldest = int(t.st_mtime)

return oldest

Expand Down

0 comments on commit dedc38c

Please sign in to comment.