X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=d2c8d790081590956031973712673b3b1342e5f4;hb=177586b9b47d8092a2cb1f4c83f254a641d00567;hp=a7086d897a68c54ffc4232bc429c616eb72465e6;hpb=03aab09c4c5fa5be1efe492a7ec1b2bcc4c9dc41;p=dak.git
diff --git a/dak/queue_report.py b/dak/queue_report.py
index a7086d89..d2c8d790 100755
--- a/dak/queue_report.py
+++ b/dak/queue_report.py
@@ -300,7 +300,7 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing
if "sourceNEW" in trclass:
print "
%s | " % (source)
else:
- print "%(source)s | " % {'source': source}
+ print "%(source)s | " % {'source': source}
print ""
for vers in version.split():
print "%s " % (source, utils.html_escape(vers), utils.html_escape(vers))
@@ -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()
|