diff options
Diffstat (limited to 'plugins/check_apt.c')
| -rw-r--r-- | plugins/check_apt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 9ed5b6cf..345b8414 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
| @@ -204,6 +204,15 @@ int main(int argc, char **argv) { | |||
| 204 | mp_add_subcheck_to_check(&overall, sc_security_updates); | 204 | mp_add_subcheck_to_check(&overall, sc_security_updates); |
| 205 | mp_add_subcheck_to_check(&overall, sc_other_updates); | 205 | mp_add_subcheck_to_check(&overall, sc_other_updates); |
| 206 | 206 | ||
| 207 | char *ok_summary = NULL; | ||
| 208 | |||
| 209 | if (packages_available == 0) { | ||
| 210 | ok_summary = "No pending updates"; | ||
| 211 | } else { | ||
| 212 | xasprintf(&ok_summary, "%zu pending updates", packages_available); | ||
| 213 | } | ||
| 214 | mp_set_ok_summary(&overall, ok_summary); | ||
| 215 | |||
| 207 | mp_exit(overall); | 216 | mp_exit(overall); |
| 208 | } | 217 | } |
| 209 | 218 | ||
