Merge lp:~brian-murray/ubuntu-archive-tools/use-devel into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 887
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/use-devel
Merge into: lp:ubuntu-archive-tools
Diff against target: 13 lines (+2/-1)
1 file modified
sru-report (+2/-1)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/use-devel
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+231427@code.launchpad.net

Description of the change

Fix the following traceback by using the devel version, instead of 1.0, of the API for Launchpad.

Traceback (most recent call last):
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 686, in <module>
    main()
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 680, in main
    kernel_ppa = get_kernel_ppa()
  File "/home/ubuntu-archive/ubuntu-archive-tools/sru-report", line 628, in get_kernel_ppa
    ppa = lp.archives.getByReference(
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 338, in __getattr__
    % (self, attr))
AttributeError: <lazr.restfulclient.resource.Collection object at 0x306ccd0> object has no attribute 'getByReference'

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

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 2014-08-12 23:05:08 +0000
3+++ sru-report 2014-08-19 17:18:22 +0000
4@@ -506,7 +506,8 @@
5 '''Init LP credentials, archive, distro list and sru-team members'''
6 global lp, ubuntu, archive, releases, ignored_commenters
7 logging.debug("Initializing LP Credentials")
8- lp = Launchpad.login_anonymously('sru-report', 'production')
9+ lp = Launchpad.login_anonymously('sru-report', 'production',
10+ version="devel")
11 ubuntu = lp.distributions['ubuntu']
12 archive = ubuntu.getArchive(name='primary')
13 for s in ubuntu.series:

Subscribers

People subscribed via source and target branches