Skip to content

Commit

Permalink
unattended-upgrade: add debug output after run()
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed May 25, 2024
1 parent 09d60fb commit 68f22de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unattended-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -2227,13 +2227,15 @@ def main(options, rootdir="/"):
try:
res = run(options, rootdir, mem_log, logfile_dpkg,
install_start_time)
logging.debug("upgrade result: %s %s" % (res.success, res.result_str))

if res.success and res.result_str:
# complete, successful run
update_kept_pkgs_file(res.pkgs_kept_back,
os.path.join(rootdir, KEPT_PACKAGES_FILE))

if res.result_str and not options.dry_run:

# there is some meaningful result which is worth an email
log_content = get_dpkg_log_content(logfile_dpkg,
install_start_time)
Expand Down

0 comments on commit 68f22de

Please sign in to comment.