Skip to content

Commit 43e73a7

Browse files
committed
sysupdate: change status once operation has completed
Otherwise after the service exits it will still show "Installing 'foobar'" as the status, which is confusing (cherry picked from commit 5cfc9c34f4a38cc82c233e453373d48231944d81) (cherry picked from commit 0e502d986b724f195385ad99f7f214d8586fec7f) (cherry picked from commit 8d7dce9a534cf14a2587145590ddea01eeb84291)
1 parent 5f7efc2 commit 43e73a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sysupdate/sysupdate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,9 @@ static int context_apply(
832832

833833
log_info("%s Successfully installed update '%s'.", special_glyph(SPECIAL_GLYPH_SPARKLES), us->version);
834834

835+
(void) sd_notifyf(/* unset_environment=*/ false,
836+
"STATUS=Installed '%s'.", us->version);
837+
835838
if (ret_applied)
836839
*ret_applied = us;
837840

0 commit comments

Comments
 (0)