- # Now look through all defined transitions
- for trans in transitions:
- t = transitions[trans]
- source = t["source"]
- new_vers = t["new"]
-
- # Will be None if nothing is in testing.
- curvers = daklib.database.get_testing_version(source)
- if not curvers == None:
- compare = apt_pkg.VersionCompare(curvers, new_vers)
-
- if curvers == None or compare < 0:
- # This is still valid, the current version in testing is older than
- # the new version we wait for, or there is none in testing yet
-
- # Check if the source we look at is affected by this.
- if sourcepkg in t['packages']:
- # The source is affected, lets reject it.
- reject("""%s: part of the %s transition.
-
-Your package is part of a testing transition to get %s migrated.
-
-Transition description: %s
-
-This transition will finish when %s, version %s, reaches testing (it currently
-has version %s).
-This transition is managed by the Release Team and %s
-is the Release-Team member responsible for it.
-Please contact them or debian-release@lists.debian.org if you
-need further assistance.
- """
- % (sourcepkg, trans, source, t["reason"], source, new_vers, curvers, t["rm"]))
- return 0