python-provy / provy

provy is a provisioning system in python.
http://docs.provy.me
MIT License
109 stars 14 forks source link

Make aptitude role faster #136

Open jbzdak opened 10 years ago

jbzdak commented 10 years ago

Aptitude role always executed ensure_up_to_date which often takes some time, albeit often it is unnecessary.

Now Aptitude role executed ensure_up_to_date only if it actyally installs some packages, in this case when provisioning server that has all packages installed this role works significantly faster.

As a bonus I added a call to apt-get update before installing aptitude --- this should be done.