X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fcontrol_suite.py;h=5291b59564796e3e8f3f3579fc51db634854e216;hb=f89e353cb89593444b3e841cadc7175a3f4e9081;hp=3a94ca5de4279ed6e581d37b6b24ef9aad78373f;hpb=5bc1925a3750cbafc82703c60c5106686c8c7af4;p=dak.git diff --git a/dak/control_suite.py b/dak/control_suite.py old mode 100755 new mode 100644 index 3a94ca5d..5291b595 --- a/dak/control_suite.py +++ b/dak/control_suite.py @@ -242,14 +242,14 @@ def main (): ('s',"set", "Control-Suite::Options::Set", "HasArg")] for i in ["add", "help", "list", "remove", "set", "version" ]: - if not Cnf.has_key("Control-Suite::Options::%s" % (i)): - Cnf["Control-Suite::Options::%s" % (i)] = "" + if not Cnf.has_key("Control-Suite::Options::%s" % (i)): + Cnf["Control-Suite::Options::%s" % (i)] = "" file_list = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv) Options = Cnf.SubTree("Control-Suite::Options") if Options["Help"]: - usage() + usage() projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"],int(Cnf["DB::Port"])) @@ -272,7 +272,7 @@ def main (): daklib.utils.fubar("No action specified.") # Safety/Sanity check - if action == "set" and suite != "testing": + if action == "set" and suite not in ["testing", "etch-m68k"]: daklib.utils.fubar("Will not reset a suite other than testing.") if action == "list": @@ -290,4 +290,3 @@ def main (): if __name__ == '__main__': main() -