Public bug reported: Binary package hint: apt
DISCLAIMER: I don't code python, and don't usually post patches. So please bear with me if I stick my foot in my mouth. BACKGROUND: I have unattended-upgrades running on edgy with a well- working setup. apache2-common didn't get upgraded automatically. Only when I turned on debug logging I discovered this was because it had "conffile prompt". To run unattended-upgrade with debug logging, I had to edit the appropriate line in /etc/cron.daily/apt. PATCH: I propose a new config option "Unattended-Upgrade::Debug" which I set to "1" in my /etc/apt/apt.conf.d/50unattended-upgrades. Now, I modified the /etc/cron.daily/apt script to respect this option and launch unattended-upgrade with the --debug option: --- /tmp/apt.org 2007-08-19 23:39:06.000000000 +0200 +++ /etc/cron.daily/apt 2007-08-19 23:30:29.000000000 +0200 @@ -158,4 +158,7 @@ eval $(apt-config shell UnattendedUpgradeInterval APT::Periodic::Unattended-Upgrade) +DebugLogging=0 +eval $(apt-config shell DebugLogging Unattended-Upgrade::Debug) + # laptop check, on_ac_power returns: @@ -195,5 +198,9 @@ UPGRADE_STAMP=/var/lib/apt/periodic/upgrade-stamp if check_stamp $UPGRADE_STAMP $UnattendedUpgradeInterval; then - unattended-upgrade + if [ ! $DebugLogging -eq 0 ]; then + unattended-upgrade --debug + else + unattended-upgrade + fi update_stamp $UPGRADE_STAMP fi I have filed a parallell "bug" report to the unattended-upgrades- package, in case you think it should rather be fixed in /usr/bin /unattended-upgrade. ** Affects: apt (Ubuntu) Importance: Undecided Status: New -- Config option to enable debug logging in unattended-upgrade https://bugs.launchpad.net/bugs/133552 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs