X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Ftransitions.py;h=7409f6f95a0b18154639cf25b62d952d1879cba7;hb=9a4fb568340b14698947bfa59b309ae0c67c693a;hp=a5eb6b6cd1e5338861b27cfb61e15a7644ca9d2d;hpb=57506ea6e65079371445778f63ed15812c3fe874;p=dak.git diff --git a/dak/transitions.py b/dak/transitions.py index a5eb6b6c..7409f6f9 100755 --- a/dak/transitions.py +++ b/dak/transitions.py @@ -76,9 +76,9 @@ def init(): if not Cnf.has_key("Edit-Transitions::Options::%s" % (i)): Cnf["Edit-Transitions::Options::%s" % (i)] = "" - apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv) + apt_pkg.parse_commandline(Cnf, Arguments, sys.argv) - Options = Cnf.SubTree("Edit-Transitions::Options") + Options = Cnf.subtree("Edit-Transitions::Options") if Options["help"]: usage() @@ -415,7 +415,7 @@ def check_transitions(transitions): print "Transition source %s not in testing, transition still ongoing." % (source) else: current = sourceobj.version - compare = apt_pkg.VersionCompare(current, expected) + compare = apt_pkg.version_compare(current, expected) if compare < 0: # This is still valid, the current version in database is older than # the new version we wait for @@ -540,7 +540,7 @@ def transition_info(transitions): # No package in testing print "Transition source %s not in testing, transition still ongoing." % (source) else: - compare = apt_pkg.VersionCompare(sourceobj.version, expected) + compare = apt_pkg.version_compare(sourceobj.version, expected) print "Apt compare says: %s" % (compare) if compare < 0: # This is still valid, the current version in database is older than