From: Ansgar Burchardt Date: Mon, 16 Jun 2014 17:34:29 +0000 (+0200) Subject: dak queue-report: --822 outputs to stdout if no other location is given X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9f42adc1c379576ac8c52b0d8901212285d7dc2e;p=dak.git dak queue-report: --822 outputs to stdout if no other location is given --- 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()