composer-cli: Add support for Group to blueprints diff
This commit is contained in:
parent
638fdb49cb
commit
2edd7a995b
@ -223,11 +223,15 @@ def prettyDiffEntry(diff):
|
|||||||
elif change(diff) == "Added":
|
elif change(diff) == "Added":
|
||||||
if name(diff) in ["Module", "Package"]:
|
if name(diff) in ["Module", "Package"]:
|
||||||
return "%s %s" % (diff["new"][name(diff)]["name"], diff["new"][name(diff)]["version"])
|
return "%s %s" % (diff["new"][name(diff)]["name"], diff["new"][name(diff)]["version"])
|
||||||
|
elif name(diff) in ["Group"]:
|
||||||
|
return diff["new"][name(diff)]["name"]
|
||||||
else:
|
else:
|
||||||
return " ".join([diff["new"][k] for k in diff["new"]])
|
return " ".join([diff["new"][k] for k in diff["new"]])
|
||||||
elif change(diff) == "Removed":
|
elif change(diff) == "Removed":
|
||||||
if name(diff) in ["Module", "Package"]:
|
if name(diff) in ["Module", "Package"]:
|
||||||
return "%s %s" % (diff["old"][name(diff)]["name"], diff["old"][name(diff)]["version"])
|
return "%s %s" % (diff["old"][name(diff)]["name"], diff["old"][name(diff)]["version"])
|
||||||
|
elif name(diff) in ["Group"]:
|
||||||
|
return diff["old"][name(diff)]["name"]
|
||||||
else:
|
else:
|
||||||
return " ".join([diff["old"][k] for k in diff["old"]])
|
return " ".join([diff["old"][k] for k in diff["old"]])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user