summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuliano Procida <gprocida@google.com>2022-08-10 19:17:54 +0100
committerGiuliano Procida <gprocida@google.com>2022-08-11 15:35:04 +0000
commitf4abb51758727e0475e902a72c3f00de45b0231e (patch)
treecaaf1083617b3bcc8deb1b1c54c89f5f22661b91
parent31e3be649ab5f8cfdd8e6c1b453cbf08a021215e (diff)
downloadbuild-f4abb51758727e0475e902a72c3f00de45b0231e.tar.gz
abitool.py: prefer stgdiff reports over abidiff reports
Now that `stgdiff --format short` also groups together removed and added symbols the reports are more suitable for inclusion in commit messages. Bug: 228843807 Change-Id: I8d65810c01218542603b7f01d53ed62717f3d984 Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r--abi/abitool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/abi/abitool.py b/abi/abitool.py
index 59ec979..454ef15 100644
--- a/abi/abitool.py
+++ b/abi/abitool.py
@@ -329,10 +329,10 @@ class Delegated(AbiTool):
_link_file(target, link)
changed = []
- if abidiff_leaf_changed:
- changed.append(("abidiff (leaf changes)", abg_leaf + ".short"))
if stgdiff_changed:
changed.append(("stgdiff", stg_short))
+ if abidiff_leaf_changed:
+ changed.append(("abidiff (leaf changes)", abg_leaf + ".short"))
if changed:
print()
print("ABI DIFFERENCES HAVE BEEN DETECTED!")