Merge lp:~brian-murray/ubuntu-archive-tools/series-status into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 954
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/series-status
Merge into: lp:ubuntu-archive-tools
Diff against target: 12 lines (+1/-1)
1 file modified
sru-report (+1/-1)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/series-status
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+258217@code.launchpad.net

Description of the change

[ 4:50PM ] [ bdmurray@impulse:~/source-trees/ubuntu-archive-tools/upstream ]
 $ DEBUG=1 ./sru-report
2015-05-04 16:50:55,094 - DEBUG - Initializing LP Credentials
2015-05-04 16:50:57,763 - DEBUG - Active releases found: utopic trusty wily precise vivid

$ DEBUG=1 ./sru-report
2015-05-04 16:51:13,437 - DEBUG - Initializing LP Credentials
2015-05-04 16:51:16,172 - DEBUG - Active releases found: utopic precise vivid trusty

Don't use series.active since that would include wily which is frozen.

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

Traceback (most recent call last):
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 765, in <module>
    main()
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 758, in main
    srus = get_srus()
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 610, in get_srus
    for excuse in excuses_data['sources']
TypeError: string indices must be integers, not str

It'll fix this traceback looking up excuses.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sru-report'
2--- sru-report 2015-04-15 21:14:12 +0000
3+++ sru-report 2015-05-04 23:56:14 +0000
4@@ -561,7 +561,7 @@
5 ubuntu = lp.distributions['ubuntu']
6 archive = ubuntu.getArchive(name='primary')
7 for s in ubuntu.series:
8- if s.active:
9+ if s.status in ('Current Stable Release', 'Supported'):
10 releases[s.name] = s
11 logging.debug('Active releases found: %s' % ' '.join(releases))
12 # create a list of people for whom comments will be ignored when

Subscribers

People subscribed via source and target branches