~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/nascentupload.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:
655
655
 
656
656
    def _checkVersion(self, proposed_version, archive_version, filename):
657
657
        """Check if the proposed version is higher than the one in archive."""
658
 
        if apt_pkg.VersionCompare(proposed_version, archive_version) < 0:
 
658
        if apt_pkg.version_compare(proposed_version, archive_version) < 0:
659
659
            self.reject("%s: Version older than that in the archive. %s <= %s"
660
660
                        % (filename, proposed_version, archive_version))
661
661