~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    Select,
72
72
    )
73
73
 
 
74
from canonical.database.constants import UTC_NOW
 
75
from canonical.database.sqlbase import (
 
76
    flush_database_updates,
 
77
    sqlvalues,
 
78
    )
 
79
from lp.services.database.lpstorm import IStore
 
80
from lp.services.orderingcheck import OrderingCheck
74
81
from lp.registry.model.sourcepackagename import SourcePackageName
75
82
from lp.services.database.bulk import load_related
76
 
from lp.services.database.constants import UTC_NOW
77
83
from lp.services.database.decoratedresultset import DecoratedResultSet
78
 
from lp.services.database.lpstorm import IStore
79
 
from lp.services.database.sqlbase import (
80
 
    flush_database_updates,
81
 
    sqlvalues,
82
 
    )
83
 
from lp.services.orderingcheck import OrderingCheck
84
84
from lp.soyuz.enums import (
85
85
    BinaryPackageFormat,
86
86
    PackagePublishingStatus,
95
95
 
96
96
 
97
97
# Ugly, but works
98
 
apt_pkg.init_system()
 
98
apt_pkg.InitSystem()
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.version_compare(
 
193
        version_comparison = apt_pkg.VersionCompare(
194
194
            self.getPackageVersion(pub1), self.getPackageVersion(pub2))
195
195
 
196
196
        if version_comparison == 0: