~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/nascentupload.py

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

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