Merge lp://staging/~smoser/charm-helpers/no-translation-errors into lp://staging/charm-helpers
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~smoser/charm-helpers/no-translation-errors |
Merge into: | lp://staging/charm-helpers |
Diff against target: |
48 lines (+32/-0) 1 file modified
charmhelpers/fetch/__init__.py (+32/-0) |
To merge this branch: | bzr merge lp://staging/~smoser/charm-helpers/no-translation-errors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Abstain | ||
Review via email: mp+273750@code.staging.launchpad.net |
Commit message
Heavily reduce number of files downloaded by apt-get update
apt-get update downloads loads of files. 2 types of files not likely used on a system that is installing charms are apt-source files and translation files.
This will stop apt from downloading either of those, and by nature of reducing files downloaded, reduce the chance for the dreaded Hash sum mismatch.
Unmerged revisions
- 464. By Scott Moser
-
Drop the source entries also.
- 463. By Scott Moser
-
fix missing import
- 462. By Scott Moser
-
disable use of translation files by apt before an apt-get update
translation files are the largest source of Hash sum mismatch
These should be permanently fixed in the 16.04 cycle for 16.04
and later under LP: #804252 and LP: #1430011. But because of the
prevalence of errors and proxies that do not handle these specially
(LP: #1474417) we just configure apt to not use translation files.Even in a world where 'Hash Sum mismatch' errors do not occur, this
is still a win in that we do not download data that no one would
ever read.
In a less permanent path to the same end, curtin now has /code.launchpad .net/~smoser/ curtin/ trunk.no- translations/ +merge/ 275451
https:/
That basically filters out deb-src lines and and then runs apt-get update with Acquire: :Languages= none
--option=