~ubuntu-bots/ubuntu-bots/devel

« back to all changes in this revision

Viewing changes to PackageInfo/packages.py

  • Committer: tsimpson
  • Date: 2013-10-30 23:34:45 UTC
  • Revision ID: tsimpson@ubuntu.com-20131030233445-jsvtr91zbe4ssxaf
Replace deprecated use of apt.VersionCompare with apt.apt_pkg.version_compare

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                return "Package lookup faild"
120
120
            if not p.get("Version", None):
121
121
                continue
122
 
            if apt.VersionCompare(maxp['Version'], p['Version']) < 0:
 
122
            if apt.apt_pkg.version_compare(maxp['Version'], p['Version']) < 0:
123
123
                maxp = p
124
124
            del parser
125
125
        maxp2 = {'Version': '0'}
135
135
                return "Package lookup faild"
136
136
            if not p['Version']:
137
137
                continue
138
 
            if apt.VersionCompare(maxp2['Version'], p['Version']) < 0:
 
138
            if apt.apt_pkg.version_compare(maxp2['Version'], p['Version']) < 0:
139
139
                maxp2 = p
140
140
            del parser
141
141
        archs = ''