Merge lp:~wgrant/launchpad/bug-685401-expired-queue-files into lp:launchpad
Proposed by
William Grant
on 2010-12-20
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Tim Penhey on 2010-12-20 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | 12114 | ||||||||
| Proposed branch: | lp:~wgrant/launchpad/bug-685401-expired-queue-files | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
133 lines (+34/-20) 3 files modified
lib/canonical/launchpad/scripts/logger.py (+1/-1) lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt (+10/-3) lib/lp/soyuz/templates/distroseries-queue.pt (+23/-16) |
||||||||
| To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-685401-expired-queue-files | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Penhey (community) | Approve on 2010-12-20 | ||
| Steve Kowalik (community) | code* | 2010-12-20 | Approve on 2010-12-20 |
|
Review via email:
|
|||
Commit Message
[r=stevenk,
Description of the Change
Files related to a PackageUpload can be expired once the upload is processed (translations tarballs are occasionally manually expired, and binaries are expired after a series' obsolescence). DistroSeries:+queue doesn't handle this case, crashing when it attempts to display the file size.
This branch fixes +queue to not link to nor attempt to show the size of expired files. I've slightly augmented an existing doctest to verify this behaviour.
To post a comment you must log in.

Oh, I also threw in a python2.7 fix for canonical. launchpad. scripts. logger. The kwarg was renamed from "strm" to "stream", so I've just made the call positional.