Add an empty post-upgrade hook
authorKlaus Aehlig <aehlig@google.com>
Fri, 10 Jan 2014 09:43:03 +0000 (10:43 +0100)
committerKlaus Aehlig <aehlig@google.com>
Fri, 10 Jan 2014 12:19:39 +0000 (13:19 +0100)
As 2.10 is the first version from which you can do automatic upgrades,
there is nothing to do when going to any other version in the 2.10
branch.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>

Makefile.am
tools/post-upgrade [new file with mode: 0644]

index 89050e8..705215a 100644 (file)
@@ -1050,6 +1050,7 @@ python_scripts = \
        tools/lvmstrap \
        tools/move-instance \
        tools/ovfconverter \
+       tools/post-upgrade \
        tools/sanitize-config
 
 dist_tools_SCRIPTS = \
diff --git a/tools/post-upgrade b/tools/post-upgrade
new file mode 100644 (file)
index 0000000..374cd08
--- /dev/null
@@ -0,0 +1,36 @@
+#!/usr/bin/python
+#
+
+# Copyright (C) 2014 Google Inc.
+#
+# 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; either version 2 of the License, or
+# (at your option) any later version.
+#
+# 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, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
+# pylint: disable=C0103
+
+"""Hook to be run after upgrading to this version.
+
+"""
+
+
+def main():
+  """Main program.
+
+  """
+  return 0
+
+if __name__ == "__main__":
+  exit(main())