~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/sourcepackagerelease.py

  • Committer: William Grant
  • Date: 2011-12-30 02:21:12 UTC
  • mto: (14606.3.6 apocaremains)
  • mto: This revision was merged to the branch mainline in revision 14608.
  • Revision ID: william.grant@canonical.com-20111230022112-1b1pdbwt1suongbu
Drop fatsam.dia. It's more than 6 years out of date.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from zope.component import getUtility
39
39
from zope.interface import implements
40
40
 
 
41
from canonical.database.constants import UTC_NOW
 
42
from canonical.database.datetimecol import UtcDateTimeCol
 
43
from canonical.database.enumcol import EnumCol
 
44
from canonical.database.sqlbase import (
 
45
    cursor,
 
46
    SQLBase,
 
47
    sqlvalues,
 
48
    )
 
49
from lp.services.helpers import shortlist
41
50
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
42
51
from lp.archiveuploader.utils import determine_source_file_type
43
52
from lp.buildmaster.enums import BuildStatus
46
55
    SourcePackageType,
47
56
    SourcePackageUrgency,
48
57
    )
49
 
from lp.services.database.constants import UTC_NOW
50
 
from lp.services.database.datetimecol import UtcDateTimeCol
51
58
from lp.services.database.decoratedresultset import DecoratedResultSet
52
 
from lp.services.database.enumcol import EnumCol
53
 
from lp.services.database.sqlbase import (
54
 
    cursor,
55
 
    SQLBase,
56
 
    sqlvalues,
57
 
    )
58
 
from lp.services.helpers import shortlist
59
59
from lp.services.librarian.model import (
60
60
    LibraryFileAlias,
61
61
    LibraryFileContent,
637
637
        if self.changelog is None:
638
638
            return None
639
639
 
640
 
        apt_pkg.init_system()
 
640
        apt_pkg.InitSystem()
641
641
        chunks = []
642
642
        changelog = self.changelog
643
643
        # The python-debian API for parsing changelogs is pretty awful. The
647
647
            for block in Changelog(changelog.read()):
648
648
                version = block._raw_version
649
649
                if (since_version and
650
 
                    apt_pkg.version_compare(version, since_version) <= 0):
 
650
                    apt_pkg.VersionCompare(version, since_version) <= 0):
651
651
                    break
652
652
                # Poking in private attributes is not nice but again the
653
653
                # API is terrible.  We want to ensure that the name/date