about summary refs log tree commit diff
path: root/maintainers/scripts/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'maintainers/scripts/update.py')
-rw-r--r--maintainers/scripts/update.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/maintainers/scripts/update.py b/maintainers/scripts/update.py
index 00d86311528e5..373818d303b1b 100644
--- a/maintainers/scripts/update.py
+++ b/maintainers/scripts/update.py
@@ -117,9 +117,13 @@ async def merge_changes(merge_lock: asyncio.Lock, package: Dict, update_info: st
     if temp_dir is not None:
         worktree, branch = temp_dir
         changes = await check_changes(package, worktree, update_info)
-        await commit_changes(package['name'], merge_lock, worktree, branch, changes)
 
-    eprint(f" - {package['name']}: DONE.")
+        if len(changes) > 0:
+            await commit_changes(package['name'], merge_lock, worktree, branch, changes)
+        else:
+            eprint(f" - {package['name']}: DONE, no changes.")
+    else:
+        eprint(f" - {package['name']}: DONE.")
 
 async def updater(temp_dir: Optional[Tuple[str, str]], merge_lock: asyncio.Lock, packages_to_update: asyncio.Queue[Optional[Dict]], keep_going: bool, commit: bool):
     while True: