From 9f42adc1c379576ac8c52b0d8901212285d7dc2e Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 16 Jun 2014 19:34:29 +0200 Subject: [PATCH] dak queue-report: --822 outputs to stdout if no other location is given --- dak/queue_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dak/queue_report.py b/dak/queue_report.py index a7086d89..422672b7 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -654,7 +654,10 @@ def main(): f = None if Cnf.has_key("Queue-Report::Options::822"): # Open the report file - f = open(Cnf["Queue-Report::ReportLocations::822Location"], "w") + f = sys.stdout + filename822 = Cnf.get("Queue-Report::ReportLocations::822Location") + if filename822: + f = open(filename822, "w") session = DBConn().session() -- 2.39.5