- suites_list = "";
- suite_ids_list = [];
- con_suites = "AND (";
- for suite in string.split(Cnf["Melanie::Options::Suite"]):
-
- if suite == "stable":
- print "**WARNING** About to remove from the stable suite!"
- print "This should only be done just prior to a (point) release and not at"
- print "any other time."
- game_over();
- elif suite == "testing":
- print "**WARNING About to remove from the testing suite!"
- print "There's no need to do this normally as removals from unstable will"
- print "propogate to testing automagically."
- game_over();
-
- suite_id = db_access.get_suite_id(suite);
- if suite_id == -1:
- sys.stderr.write("W: suite '%s' not recognised.\n" % (suite));
- else:
- con_suites = con_suites + "su.id = %s OR " % (suite_id)
-
- suites_list = suites_list + suite + ", "
- suite_ids_list.append(suite_id);
- con_suites = con_suites[:-3] + ")"
- suites_list = suites_list[:-2];
-
- if Cnf["Melanie::Options::Component"]:
- con_components = "AND (";
- over_con_components = "AND (";
- for component in string.split(Cnf["Melanie::Options::Component"]):
- component_id = db_access.get_component_id(component);
- if component_id == -1:
- sys.stderr.write("W: component '%s' not recognised.\n" % (component));
- else:
- con_components = con_components + "c.id = %s OR " % (component_id);
- over_con_components = over_con_components + "component = %s OR " % (component_id);
- con_components = con_components[:-3] + ")"
- over_con_components = over_con_components[:-3] + ")";
- else:
- con_components = "";
- over_con_components = "";
-
- if Cnf["Melanie::Options::Architecture"]:
- con_architectures = "AND (";
- for architecture in string.split(Cnf["Melanie::Options::Architecture"]):
- architecture_id = db_access.get_architecture_id(architecture);
- if architecture_id == -1:
- sys.stderr.write("W: architecture '%s' not recognised.\n" % (architecture));
- else:
- con_architectures = con_architectures + "a.id = %s OR " % (architecture_id)
- con_architectures = con_architectures[:-3] + ")"
- else:
- con_architectures = "";