Do not refresh APT lists on every run.

Let's set refreshonly on the 'update_apt' Exec (aliased to 'apt_updated')
instead of removing it for backward compatibility: it may be in use at some
places to trigger updates.
This commit is contained in:
intrigeri 2010-11-10 14:44:01 +01:00
parent 2cd9496999
commit 06a2957f9f

View file

@ -145,6 +145,7 @@ class apt {
Config_file['/etc/apt/sources.list'] ];
'update_apt':
command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
refreshonly => true,
require => [ File['/etc/apt/apt.conf.d',
'/etc/apt/preferences'],
Config_file['/etc/apt/sources.list'] ],