Fix prettyDiffEntry output

It was returning old -> old for Description and Version, not old -> new
This commit is contained in:
Brian C. Lane 2018-03-16 11:00:08 -07:00
parent 6560cc6f27
commit 5446cad1b0

View File

@ -214,9 +214,9 @@ def prettyDiffEntry(diff):
def details(diff):
if change(diff) == "Changed":
if name(diff) == "Description":
return '"%s" -> "%s"' % (diff["old"][name(diff)], diff["old"][name(diff)])
return '"%s" -> "%s"' % (diff["old"][name(diff)], diff["new"][name(diff)])
elif name(diff) == "Version":
return "%s -> %s" % (diff["old"][name(diff)], diff["old"][name(diff)])
return "%s -> %s" % (diff["old"][name(diff)], diff["new"][name(diff)])
elif name(diff) in ["Module", "Package"]:
return "%s %s -> %s" % (diff["old"][name(diff)]["name"], diff["old"][name(diff)]["version"],
diff["new"][name(diff)]["version"])