summaryrefslogtreecommitdiff
path: root/distbuild/initiator_connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'distbuild/initiator_connection.py')
-rw-r--r--distbuild/initiator_connection.py31
1 files changed, 4 insertions, 27 deletions
diff --git a/distbuild/initiator_connection.py b/distbuild/initiator_connection.py
index 86df28f1..8d6c1f4c 100644
--- a/distbuild/initiator_connection.py
+++ b/distbuild/initiator_connection.py
@@ -1,6 +1,6 @@
# distbuild/initiator_connection.py -- communicate with initiator
#
-# Copyright (C) 2012, 2014 - 2015 Codethink Limited
+# Copyright (C) 2012, 2014-2015 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -12,8 +12,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA..
+# with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
@@ -77,8 +76,6 @@ class InitiatorConnection(distbuild.StateMachine):
'idle', self._send_build_failed_message),
('idle', distbuild.BuildController, distbuild.BuildProgress,
'idle', self._send_build_progress_message),
- ('idle', distbuild.BuildController, distbuild.BuildSteps,
- 'idle', self._send_build_steps_message),
('idle', distbuild.BuildController, distbuild.BuildStepStarted,
'idle', self._send_build_step_started_message),
('idle', distbuild.BuildController,
@@ -109,8 +106,8 @@ class InitiatorConnection(distbuild.StateMachine):
reason=('Protocol version mismatch between server & '
'initiator: distbuild network uses distbuild '
'protocol version %i, but client uses version'
- ' %i.', distbuild.protocol.VERSION,
- event.msg.get('protocol_version')))
+ ' %i.' % (distbuild.protocol.VERSION,
+ event.msg.get('protocol_version'))))
self.jm.send(msg)
self._log_send(msg)
return
@@ -180,26 +177,6 @@ class InitiatorConnection(distbuild.StateMachine):
self.jm.send(msg)
self._log_send(msg)
- def _send_build_steps_message(self, event_source, event):
-
- def make_step_dict(artifact):
- return {
- 'name': distbuild.build_step_name(artifact),
- 'build-depends': [
- distbuild.build_step_name(x)
- for x in artifact.source.dependencies
- ]
- }
-
- if event.id in self.our_ids:
- step_names = distbuild.map_build_graph(
- event.artifact, make_step_dict)
- msg = distbuild.message('build-steps',
- id=self._route_map.get_incoming_id(event.id),
- steps=step_names)
- self.jm.send(msg)
- self._log_send(msg)
-
def _send_build_step_started_message(self, event_source, event):
logging.debug('InitiatorConnection: build_step_started: '
'id=%s step_name=%s worker_name=%s' %