Merge lp:~smoser/ubuntu-reports/trunk.fix-server-merges into lp:ubuntu-reports

Proposed by Scott Moser
Status: Merged
Merged at revision: 131
Proposed branch: lp:~smoser/ubuntu-reports/trunk.fix-server-merges
Merge into: lp:ubuntu-reports
Diff against target: 14 lines (+2/-2)
1 file modified
server/merges.py (+2/-2)
To merge this branch: bzr merge lp:~smoser/ubuntu-reports/trunk.fix-server-merges
Reviewer Review Type Date Requested Status
Dave Walker Approve
Review via email: mp+266745@code.launchpad.net

Commit message

server/merges.py: update use of python-apt for versions in trusty

see LP: #1216655. python-apt changed interfaces and this just adjusts
to that change. The new path works on 12.04 versions of python-apt as well, so this is actually backwards compatible.

Description of the change

server/merges.py: update use of python-apt for versions in trusty

see LP: #1216655. python-apt changed interfaces and this just adjusts
to that change.

I suspect that the system that this code runs on to produce
  http://reqorts.qa.ubuntu.com/reports/ubuntu-server/merges.html
got updated from precise to trusty and this is currently broken.

To post a comment you must log in.
132. By Scott Moser

remove the old path as precise supports new path.

Revision history for this message
Dave Walker (davewalker) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'server/merges.py'
2--- server/merges.py 2013-07-24 15:28:21 +0000
3+++ server/merges.py 2015-08-03 16:07:01 +0000
4@@ -187,8 +187,8 @@
5 def debian_newer(ubuntu,debian):
6 if debian == 0:
7 return False
8- apt_pkg.InitSystem()
9- delta = apt_pkg.VersionCompare(ubuntu, debian)
10+ apt_pkg.init_system()
11+ delta = apt_pkg.version_compare(ubuntu, debian)
12 if delta < 0:
13 return True
14 else:

Subscribers

People subscribed via source and target branches