From: Mark Hymers Date: Wed, 27 Jul 2011 20:03:08 +0000 (+0100) Subject: Fallback if DefaultSuite is not set X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b8140e33e1e147818effa5d88996a044049ad8f6;p=dak.git Fallback if DefaultSuite is not set Signed-off-by: Mark Hymers --- diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 08d336d4..21988dcd 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -518,7 +518,8 @@ def main (): for i in [ "help" ]: if not cnf.has_key("Cruft-Report::Options::%s" % (i)): cnf["Cruft-Report::Options::%s" % (i)] = "" - cnf["Cruft-Report::Options::Suite"] = cnf["Dinstall::DefaultSuite"] + + cnf["Cruft-Report::Options::Suite"] = cnf.get("Dinstall::DefaultSuite", "unstable") if not cnf.has_key("Cruft-Report::Options::Mode"): cnf["Cruft-Report::Options::Mode"] = "daily"