~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 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:
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))