From b8140e33e1e147818effa5d88996a044049ad8f6 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 27 Jul 2011 21:03:08 +0100 Subject: [PATCH] Fallback if DefaultSuite is not set Signed-off-by: Mark Hymers --- dak/cruft_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5