Merge lp:~michael.nelson/launchpad/432152-orig-file-counts into lp:launchpad
Proposed by
Michael Nelson
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~michael.nelson/launchpad/432152-orig-file-counts |
Merge into: | lp:launchpad |
Diff against target: |
95 lines 2 files modified
lib/lp/soyuz/model/archive.py (+19/-10) lib/lp/soyuz/tests/test_archive.py (+37/-0) |
To merge this branch: | bzr merge lp:~michael.nelson/launchpad/432152-orig-file-counts |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+12645@code.launchpad.net |
To post a comment you must log in.
= Summary =
This is a fix for bug 432152, where tarball uploads to a PPA for 1.0.4+repack3. orig.tar. gz at ppa.launchpad. net/pbxbuntu- drivers/ ppa/ubuntu/ pool/main/ f/freeswitch/
different distroseries was resulting in the tarball size being counted
once for each upload - even though we (can) only store one copy of the
tarball in the pool (for eg. the tarball
freeswitch_
http://
is used for all the distroseries builds.)
== Proposed fix ==
== Pre-implementation notes ==
I had a pre-imp. with Celso who recommended that we not put the
responsibility of checking for previous uploads of the same librarian
file in the DSCFile, but rather, just updating the sources_size property
on the archive, to ensure that it only counts unique filenames in the pool.
== Implementation details ==
== Tests ==
bin/test -vv -t TestArchiveRepo sitorySize -t doc/archive.txt -t
archive-views.txt
== Demo and Q/A ==
No demo. Q/A we can do on dogfood, or check on production when William
uploads his next update.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/tests/ test_archive. py soyuz/model/ archive. py
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ soyuz/model/ archive. py .event' (No module named
14: [F0401] Unable to import 'lazr.lifecycle
lifecycle)
--
Michael