puppetlabs/puppet — pull request #2387 by seveas (2014-02-25 08:58:38+00:00)
Title: Respect Yum's lock

We're seeing RPM DB corruption relatively frequently these days and have narrowed it down to the yumhelper not respecting Yum's lock. Let's make it respect the lock. Instead of copying the wait loop around the lock, fall back to shell_out and make yum do the right thing.