[dak/master] change print_info to get_info so we can use it for emailing later
Signed-off-by: Mark Hymers <mhy@debian.org>
---
dak/transitions.py | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dak/transitions.py b/dak/transitions.py
index 90d2f62..1a5355b 100755
--- a/dak/transitions.py
+++ b/dak/transitions.py
@@ -403,7 +403,7 @@ def check_transitions(transitions):
# Will be None if nothing is in testing.
current = database.get_suite_version(source, "testing")
- print_info(trans, source, expected, t["rm"], t["reason"], t["packages"])
+ print get_info(trans, source, expected, t["rm"], t["reason"], t["packages"])
if current == None:
# No package in testing
@@ -456,7 +456,7 @@ def check_transitions(transitions):
################################################################################
-def print_info(trans, source, expected, rm, reason, packages):
+def get_info(trans, source, expected, rm, reason, packages):
"""
Print information about a single transition.
@@ -479,21 +479,20 @@ def print_info(trans, source, expected, rm, reason, packages):
@param packages: list of blocked packages
"""
- print """Looking at transition: %s
+ return """Looking at transition: %s
Source: %s
New Version: %s
Responsible: %s
Description: %s
Blocked Packages (total: %d): %s
""" % (trans, source, expected, rm, reason, len(packages), ", ".join(packages))
- return
################################################################################
def transition_info(transitions):
"""
Print information about all defined transitions.
- Calls L{print_info} for every transition and then tells user if the transition is
+ Calls L{get_info} for every transition and then tells user if the transition is
still ongoing or if the expected version already hit testing.
@type transitions: dict
@@ -507,7 +506,7 @@ def transition_info(transitions):
# Will be None if nothing is in testing.
current = database.get_suite_version(source, "testing")
- print_info(trans, source, expected, t["rm"], t["reason"], t["packages"])
+ print get_info(trans, source, expected, t["rm"], t["reason"], t["packages"])
if current == None:
# No package in testing
--
1.5.6.5
Reply to: