summaryrefslogtreecommitdiff
path: root/distbuild/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'distbuild/protocol.py')
-rw-r--r--distbuild/protocol.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/distbuild/protocol.py b/distbuild/protocol.py
index ffce1fe7..73d72d1d 100644
--- a/distbuild/protocol.py
+++ b/distbuild/protocol.py
@@ -1,6 +1,6 @@
# distbuild/protocol.py -- abstractions for the JSON messages
#
-# Copyright (C) 2012, 2014 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,28 +12,31 @@
# 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/>.
'''Construct protocol message objects (dicts).'''
+# Version refers to an integer that should be incremented by one each time a
+# time a change is introduced that would break server/initiator compatibility
+
+
+VERSION = 1
+
+
_required_fields = {
'build-request': [
'id',
'repo',
'ref',
'morphology',
+ 'protocol_version',
],
'build-progress': [
'id',
'message',
],
- 'build-steps': [
- 'id',
- 'steps',
- ],
'step-started': [
'id',
'step_name',