[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#457193: marked as done (cron.daily/apt runs "apt-get -qq update" by default and when set not to run it)



Your message dated Thu, 3 Jan 2008 14:39:08 -0600
with message-id <200801031439.09370.adam@alphapapa.net>
and subject line Closing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apt
Version: 0.7.6

$ less /etc/cron.daily/apt
...
check_stamp()
{
   stamp="$1"
   interval="$2"

   if [ $interval -eq 0 ]; then
       return 1
   fi
...
UpdateInterval=0
DownloadUpgradeableInterval=0
eval $(apt-config shell UpdateInterval
APT::Periodic::Update-Package-Lists DownloadUpgradeableInterval
APT::Periodic::Download-Upgradeable-Packages)
...
UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
if check_stamp $UPDATE_STAMP $UpdateInterval; then
   if apt-get -qq update 2>/dev/null; then

$ less /etc/apt/apt.conf
APT::Cache-Limit 20000000;


As you can see, I haven't enabled the perodic updates in apt.conf, but
the check_stamp function returns true if the interval is set to 0,
which it is by default (UpdateInterval=0).  So "if check_stamp" will
return true, and it will then run "apt-get -qq update", even though I
haven't enabled it.  And, in fact, if I disable it in apt.conf, it
will still run it.

Is it just me or is it strange that no one has noticed this before?
Doesn't this mean that just about every Debian computer on the
Internet is running "apt-get -qq update" every day?  Isn't this a
waste of bandwidth?



--- End Message ---
--- Begin Message ---
Package: apt
Version: 0.7.6

Apparently I misunderstood the script; something else must be going on.


--- End Message ---

Reply to: