+ if packages == []:
+ utils.fubar("need at least one package name as an argument.");
+
+ if Options.get("Suite"):
+ con_suites = "AND (";
+ for suite in string.split(Options["Suite"]):
+ suite_id = db_access.get_suite_id(suite);
+ if suite_id == -1:
+ utils.warn("suite '%s' not recognised." % (suite));
+ else:
+ con_suites = con_suites + "su.id = %s OR " % (suite_id)
+ con_suites = con_suites[:-3] + ")"
+ else:
+ con_suites = "";
+
+ if Options.get("Architecture"):
+ con_architectures = "AND (";
+ check_source = 0;
+ for architecture in string.split(Options["Architecture"]):
+ if architecture == "source":
+ check_source = 1;
+ architecture_id = db_access.get_architecture_id(architecture);
+ if architecture_id == -1:
+ utils.warn("architecture '%s' not recognised." % (architecture));
+ else:
+ con_architectures = con_architectures + "a.id = %s OR " % (architecture_id)
+ con_architectures = con_architectures[:-3] + ")"
+ else:
+ con_architectures = "";
+ check_source = 1;
+