summaryrefslogtreecommitdiff
path: root/migrations/000-version-info.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-02-28 18:40:33 +0000
committerBaserock Gerrit <gerrit@baserock.org>2016-03-01 10:23:16 +0000
commit08b60b1721f0e7c0d287980f35872edcc9d2c95c (patch)
tree08fe0cc230bef5bbe01f90f242453ab387c2ae95 /migrations/000-version-info.py
parent9eb70b9f20fe79ff7509993d735b742cf956f5c6 (diff)
downloaddefinitions-08b60b1721f0e7c0d287980f35872edcc9d2c95c.tar.gz
Remove migrations - this content is now in baserock/spec.git
Change-Id: Icf333b87e3ae5d6e9984d6e534d8b8c0ae15c7a4
Diffstat (limited to 'migrations/000-version-info.py')
-rwxr-xr-xmigrations/000-version-info.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/migrations/000-version-info.py b/migrations/000-version-info.py
deleted file mode 100755
index 2bff51f4..00000000
--- a/migrations/000-version-info.py
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env python
-# Copyright (C) 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
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# 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, see <http://www.gnu.org/licenses/>.
-
-
-'''Migration to Baserock Definitions format version 0.
-
-The format of version 0 is not formally specified, except by the Morph
-codebase. It marks the starting point of the work to formalise the Baserock
-Definitions format.
-
-'''
-
-
-import os
-import sys
-
-import migrations
-
-
-TO_VERSION = 0
-
-
-try:
- if os.path.exists('./VERSION'):
- # This will raise an exception if the VERSION file is invalid, which
- # might be useful.
- migrations.check_definitions_version(TO_VERSION)
-
- sys.stdout.write("Nothing to do.\n")
- sys.exit(0)
- else:
- sys.stdout.write("No VERSION file found, creating one.\n")
- migrations.set_definitions_version(TO_VERSION)
- sys.exit(0)
-except RuntimeError as e:
- sys.stderr.write("Error: %s\n" % e.message)
- sys.exit(1)