=== modified file 'scripts/testlib.py' --- scripts/testlib.py 2013-08-25 19:56:50 +0000 +++ scripts/testlib.py 2013-08-26 10:33:39 +0000 @@ -24,16 +24,14 @@ import sys, socket, gzip from stat import * from encodings import string_escape -import warnings -warnings.filterwarnings('ignore', message=r'.*apt_pkg\.TagFile.*', category=DeprecationWarning) try: import apt_pkg - apt_pkg.InitSystem(); + apt_pkg.init_system(); except: # On non-Debian system, fall back to simple comparison without debianisms class apt_pkg(object): @staticmethod - def VersionCompare(one, two): + def version_compare(one, two): list_one = one.split('.') list_two = two.split('.') while len(list_one)>0 and len(list_two)>0: @@ -874,7 +872,7 @@ class TestlibCase(unittest.TestCase): self.path_libc = self.manager.path_libc def version_compare(self, one, two): - return apt_pkg.VersionCompare(one,two) + return apt_pkg.version_compare(one,two) def assertFileType(self, filename, filetype): '''Checks the file type of the file specified'''