]> git.decadent.org.uk Git - dak.git/commitdiff
Fallback if DefaultSuite is not set
authorMark Hymers <mhy@debian.org>
Wed, 27 Jul 2011 20:03:08 +0000 (21:03 +0100)
committerMark Hymers <mhy@debian.org>
Wed, 27 Jul 2011 20:03:08 +0000 (21:03 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/cruft_report.py

index 08d336d4466ea41fcef987c49a9fa105006e8b45..21988dcd1d97aeb96c4a144b2df9ffb7183e2fa8 100755 (executable)
@@ -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"