~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Raphael Badin
  • Date: 2012-01-06 08:27:55 UTC
  • mfrom: (14513.5.4 builder-history-lfa)
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120106082755-95a0eh6nakv5hj3b
Merge devel.

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