Merge lp://staging/~smoser/charm-helpers/no-translation-errors into lp://staging/charm-helpers

Proposed by Scott Moser
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
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.

To post a comment you must log in.
463. By Scott Moser

fix missing import

Revision history for this message
Ryan Harper (raharper) :
464. By Scott Moser

Drop the source entries also.

Revision history for this message
Scott Moser (smoser) wrote :

In a less permanent path to the same end, curtin now has
  https://code.launchpad.net/~smoser/curtin/trunk.no-translations/+merge/275451

That basically filters out deb-src lines and and then runs apt-get update with
   --option=Acquire::Languages=none

Revision history for this message
Stuart Bishop (stub) :
review: Abstain

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.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches