Skip to content

Commit

Permalink
fix: Clarify Comment for pending Deployment
Browse files Browse the repository at this point in the history
From the help message of rpm-ostree status:
--pending-exit-77     If pending deployment available, exit 77
  • Loading branch information
remggo committed Aug 23, 2024
1 parent d13b40a commit 057ecbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ublue_update/update_checks/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def system_update_check():
def pending_deployment_check():
rpm_ostree_cmd = ["rpm-ostree", "status", "--pending-exit-77"]
status = run(rpm_ostree_cmd, capture_output=True)
if status.returncode == 77: # no pending deployment
if status.returncode == 77: # pending deployment
return True
return False

0 comments on commit 057ecbb

Please sign in to comment.