~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/packagecopier.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-03 17:08:40 UTC
  • mfrom: (14600.3.7 germinate-all-dev-series)
  • Revision ID: launchpad@pqm.canonical.com-20120103170840-qw8albc2cp5bk7ry
[r=wgrant][bug=904538] Let cron.germinate handle multiple dev series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
        if ancestry is not None:
505
505
            ancestry_version = ancestry.sourcepackagerelease.version
506
506
            copy_version = source.sourcepackagerelease.version
507
 
            apt_pkg.InitSystem()
508
 
            if apt_pkg.VersionCompare(copy_version, ancestry_version) < 0:
 
507
            apt_pkg.init_system()
 
508
            if apt_pkg.version_compare(copy_version, ancestry_version) < 0:
509
509
                raise CannotCopy(
510
510
                    "version older than the %s published in %s" %
511
511
                    (ancestry.displayname, ancestry.distroseries.name))