+ # If cron.daily is running; warn the user that our output might seem strange
+ if os.path.exists(os.path.join(Cnf["Dir::Root"], "Archive_Maintenance_In_Progress")):
+ utils.warn("Archive maintenance is in progress; database inconsistencies are possible.");
+
+ # Handle buildd maintenance helper options
+ if Options["GreaterOrEqual"] or Options["GreaterThan"]:
+ if Options["GreaterOrEqual"] and Options["GreaterThan"]:
+ utils.fubar("-g/--greaterorequal and -G/--greaterthan are mutually exclusive.");
+ if not Options["Suite"]:
+ Options["Suite"] = "unstable";
+
+ # Parse -a/--architecture, -c/--component and -s/--suite
+ (con_suites, con_architectures, con_components, check_source) = \
+ utils.parse_args(Options);
+
+ if Options["BinaryType"]:
+ if Options["BinaryType"] != "udeb" and Options["BinaryType"] != "deb":
+ utils.fubar("Invalid binary type. 'udeb' and 'deb' recognised.");
+ con_bintype = "AND b.type = '%s'" % (Options["BinaryType"]);
+ # REMOVE ME TRAMP
+ if Options["BinaryType"] == "udeb":
+ check_source = 0;
+ else:
+ con_bintype = "";
+