~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-01 12:03:28 UTC
  • mfrom: (14612.3.1 feeds-stories)
  • Revision ID: launchpad@pqm.canonical.com-20120101120328-4nypd4mqnjzk62a7
[r=wgrant][no-qa] Move feeds stories from lp.services.session to
        lp.services.feeds.

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.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