Skip to content

Commit

Permalink
Bug 695526 - Use stage_platform to filter platform list, r=jgriffin
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lewchuk committed Oct 18, 2011
1 parent 66a3745 commit 7aa8bda
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pulsebuildmonitor/pulsebuildmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,14 @@ def pulseMessageReceived(self, data, message):
except Exception, inst:
raise BadPulseMessageError(data, traceback.format_exc(2))

# see if this message is from mobile
if (self.mobile is not None and self.mobile != builddata['mobile']):
message.ack()
return

# see if this message is for one of our platforms
if (self.platforms is not None and builddata['platform'] not in self.platforms) or \
(self.mobile is not None and self.mobile != builddata['mobile']):
if (self.platforms is not None and builddata['platform'] not in self.platforms and \
stage_platform not in self.platforms):
message.ack()
return

Expand Down

0 comments on commit 7aa8bda

Please sign in to comment.