puppetlabs/puppet-apt — pull request #35 by marut (2012-03-20 06:04:30+00:00)
Title: Modify apt::source to update only new/modified source

Previously, apt::source would run a full `apt-get update` for every resource defined. This commit modifies the `apt-get update` exec created by each apt::source to run an update against not all sources, but only the specific source that the apt::source resource has defined. It achieves this by setting the Dir::Etc::sourcelist and Dir::Etc::SourceParts options when invoking apt-get, along with --no-list-cleanup.

This mitigates the problem of every apt::source running a full `apt-get update` against all sources, but it may not be the "best" solution. Bigger picture might merit re-opening discussion about the points brought up in [puppetlabs/puppet-apt/pull/13](https://github.com/puppetlabs/puppet-apt/pull/13) "Only call apt-get update once per puppet run" and making a decision one way or the other.

This pull request does not yet modify apt::ppa with the same options to `apt-get update`. I might add another commit later.