Merge lp:~brian-murray/ubuntu-archive-tools/queue-tables into lp:ubuntu-archive-tools
| Status: | Rejected |
|---|---|
| Rejected by: | Martin Pitt on 2012-05-31 |
| Proposed branch: | lp:~brian-murray/ubuntu-archive-tools/queue-tables |
| Merge into: | lp:ubuntu-archive-tools |
| Diff against target: |
66 lines (+29/-18) 1 file modified
sru-report (+29/-18) |
| To merge this branch: | bzr merge lp:~brian-murray/ubuntu-archive-tools/queue-tables |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pitt | Needs Fixing on 2012-05-31 | ||
| Colin Watson | 2012-05-30 | Approve on 2012-05-31 | |
|
Review via email:
|
|||
Description of the Change
I converted the get_queue_count function to use the API instead of screen scraping and split the queue table into two parts - one for backports and one for proposed.
| Martin Pitt (pitti) wrote : | # |
Please note that I already had some code like this in the past:
http://
http://
but it does not work with the lucid packages used on lillypilly, so I reverted it back then:
http://
Traceback (most recent call last):
File "ubuntu-
main()
File "ubuntu-
print_
File "ubuntu-
unapproved_url, get_queue_
File "ubuntu-
pocket=
File "/usr/lib/
raise TypeError(
TypeError: collection size is not available
So I reverted it again for now to keep our reports working. If you find out how to make this work in lucid, we can revisit this.
| Brian Murray (brian-murray) wrote : | # |
This fixes it on Lucid.
+ count = int(release.
+ pocket=
If lillypilly gets updated then we can use len().
| Colin Watson (cjwatson) wrote : | # |
Sorry I forgot to mention, but I installed a workaround for this this morning.
I also filed an RT to get lillypilly upgraded.

LGTM. It'd be nice to fix the code duplication introduced by this change at some point, although this script is somewhat replete with duplication already.