puppetlabs/puppet-apt — pull request #4 by webfactory (2011-11-02 09:37:10+00:00)
Title: Suggested fix for #10449

When using apt::source with a Pin value, the preference file (containing the pin priority) should be created before adding the source.

Otherwise, when adding a source that is supposed to have a lower priority (not a package source by default) a race condition might occur where Puppet adds the source and installs new packages from it before lowering the priority.

http://projects.puppetlabs.com/issues/10449