Skip to content

Commit

Permalink
Consider conffile prompts to be errors when there's nothing else to do
Browse files Browse the repository at this point in the history
Unless there are also packages that can be upgraded, processing won't get
beyond "exit if there is nothing to do" to report a failure result because
of conffile prompts.

Check for conffile prompts when determining success/failure at the earlier
"nothing to do" stage.

Fixes mvo5#336.
  • Loading branch information
nomis committed Jan 19, 2024
1 parent 5f979a2 commit 7445e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unattended-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ def run(options, # type: Options

pkgs_kept_back = cache.find_kept_packages(options.dry_run)
return UnattendedUpgradesResult(
kernel_pkgs_remove_success,
kernel_pkgs_remove_success and not pkg_conffile_prompt,
_("No packages found that can be upgraded unattended and no "
"pending auto-removals"),
pkgs_removed=kernel_pkgs_removed,
Expand Down

0 comments on commit 7445e96

Please sign in to comment.