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:
parent
2cd9496999
commit
06a2957f9f
1 changed files with 1 additions and 0 deletions
|
@ -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'] ],
|
||||
|
|
Loading…
Reference in a new issue