Comment 8 for bug 1178943

Revision history for this message
Jérôme (jerome-bouat) wrote :

I propose the attached patch.

In short :
- /etc/cron.daily/apt is moved to /usr/lib/apt/maintenance.sh and I removed the random_sleep function
- /etc/cron.daily/apt request to "at" to launch /usr/lib/apt/maintenance.sh after a random delay

There is another benefit : we are checking for battery operation only once.

The package will require a dependency to "at".