Self update will not trigger if only ahead by one commit
Patch:
diff --git a/armarx_setup/self/self_update.py b/armarx_setup/self/self_update.py
index 704069a..ddea7bb 100644
--- a/armarx_setup/self/self_update.py
+++ b/armarx_setup/self/self_update.py
@@ -17,7 +17,7 @@ def check_for_updates() -> SelfUpdateStatus:
out = commands.run('git fetch origin ; git status', cwd=PACKAGE_ROOT, capture_output=True, quiet=True)
if re.search(r"Your branch is up to date with '.*'\.", out) is not None:
return SelfUpdateStatus.UP_TO_DATE
- elif re.search(r"Your branch is behind '.*' by [0-9]+ commits, and can be fast-forwarded\.", out) is not None:
+ elif re.search(r"Your branch is behind '.*' by [0-9]+ commits?, and can be fast-forwarded\.", out) is not None:
return SelfUpdateStatus.OUTDATED