~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/sourcepackagerelease.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:
637
637
        if self.changelog is None:
638
638
            return None
639
639
 
640
 
        apt_pkg.InitSystem()
 
640
        apt_pkg.init_system()
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.VersionCompare(version, since_version) <= 0):
 
650
                    apt_pkg.version_compare(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