Merge lp:~chad.smith/charm-helpers/retry-add-apt-repository into lp:charm-helpers
Proposed by
Chad Smith
Status: | Merged |
---|---|
Merged at revision: | 705 |
Proposed branch: | lp:~chad.smith/charm-helpers/retry-add-apt-repository |
Merge into: | lp:charm-helpers |
Diff against target: |
230 lines (+91/-39) 2 files modified
charmhelpers/fetch/ubuntu.py (+51/-31) tests/fetch/test_fetch.py (+40/-8) |
To merge this branch: | bzr merge lp:~chad.smith/charm-helpers/retry-add-apt-repository |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Snow (community) | Approve | ||
David Britton (community) | Approve | ||
Review via email: mp+318951@code.launchpad.net |
Description of the change
Add 3 retries and logging messages to add-apt-repository attempts.
This branch involves some slight refactoring of _run_apt_command so that the common code _retry_command() can be reused by both _run_apt_command and add_source.
Note this branch also includes the local environment now in add-apt-repository calls which should also help in environments with proxy settings present.
To post a comment you must log in.
Small nits inline. Code tests OK, lints OK. Thanks for the contribution. +1 with the small fixes addressed!