puppetlabs/puppetlabs-apt — pull request #185 by dalen (2013-11-14 10:05:38+00:00)
Title: Retry package installs

Sometimes package installs can fail to aquire the lock file, so retry
the command in that case.

```
Notice: /Stage[main]/Hostbase::Apt/Apt::Source[debian-backports]/Exec[Required packages: 'debian-keyring debian-archive-keyring' for debian-backports]/returns: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
Notice: /Stage[main]/Hostbase::Apt/Apt::Source[debian-backports]/Exec[Required packages: 'debian-keyring debian-archive-keyring' for debian-backports]/returns: E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Error: /Stage[main]/Hostbase::Apt/Apt::Source[debian-backports]/Exec[Required packages: 'debian-keyring debian-archive-keyring' for debian-backports]: Failed to call refresh: /usr/bin/apt-get -y install debian-keyring debian-archive-keyring returned 100 instead of one of [0]
Error: /Stage[main]/Hostbase::Apt/Apt::Source[debian-backports]/Exec[Required packages: 'debian-keyring debian-archive-keyring' for debian-backports]: /usr/bin/apt-get -y install debian-keyring debian-archive-keyring returned 100 instead of one of [0]
```