~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archivepublisher/domination.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-03 05:05:39 UTC
  • mfrom: (14514.3.5 new-python-apt)
  • Revision ID: launchpad@pqm.canonical.com-20120103050539-y6ipuo5e9illcrsr
[r=benji][bug=551510] Port to new python-apt API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
 
97
97
# Ugly, but works
98
 
apt_pkg.InitSystem()
 
98
apt_pkg.init_system()
99
99
 
100
100
 
101
101
def join_spph_spn():
190
190
        If both publications are for the same version, their creation dates
191
191
        break the tie.
192
192
        """
193
 
        version_comparison = apt_pkg.VersionCompare(
 
193
        version_comparison = apt_pkg.version_compare(
194
194
            self.getPackageVersion(pub1), self.getPackageVersion(pub2))
195
195
 
196
196
        if version_comparison == 0: