From 7e26d14cedc530de46f3ea3d94504d78c071f811 Mon Sep 17 00:00:00 2001
From: Devin148 <dhurd@basistech.com>
Date: Mon, 12 Nov 2012 10:21:24 -0500
Subject: [PATCH] Bugfix for implementation version

---
 update_versions.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/update_versions.py b/update_versions.py
index 43d3c00740..12b2dafa5d 100644
--- a/update_versions.py
+++ b/update_versions.py
@@ -176,11 +176,11 @@ def compare_xml(module, apiname_tag, apiname_cur):
     code = jdiff.returncode
     print("Compared XML for " + module.name)
     if code == 100:
-        print("  No changes")
+        print("  No API changes")
     elif code == 101:
-        print("  Changes are backwards compatible")
+        print("  API Changes are backwards compatible")
     elif code == 102:
-        print("  Changes are not backwards compatible")
+        print("  API Changes are not backwards compatible")
     else:
         print("  *Error in XML, most likely an empty module")
     sys.stdout.flush()
@@ -530,6 +530,10 @@ def update_versions(modules, source):
             set_implementation(manifest, versions[1])
             set_release(manifest, versions[2])
             module.set_versions(versions)
+        elif module.ret == 100:
+            versions = [versions[0], versions[1] + 1, versions[2]]
+            set_implementation(manifest, versions[1])
+            module.set_versions(versions)
         elif module.ret == None:
             versions = [Spec("1.0"), 1, 1]
             set_specification(project, manifest, versions[0])
@@ -607,6 +611,13 @@ def print_version_updates(modules):
             output += ("\n")
             print(output)
             f.write(output)
+        elif module.ret == 100:
+            output = (module.name + ":\n")
+            output += ("  Current Implementation version:\t" + str(versions[1]) + "\n")
+            output += ("  Updated Implementation version:\t" + str(versions[1] + 1) + "\n")
+            output += ("\n")
+            print(output)
+            f.write(output)
         elif module.ret is None:
             output = ("Added " + module.name + ":\n")
             if module.spec() != "1.0" and module.spec() != "0.0":
-- 
GitLab