-private:
- /** Prepares packages and targets for building. Returns true if everything
- went ok, or false if something bad happened and a build shouldn't be
- attempted. */
- bool prepare_build();
-
- /** Supervises the build process, starting new tasks when slots become
- available. */
- int do_build();
-
- /** Cleans buildable targets. If clean is 1, cleans only the default
- package. If clean is 2 or greater, cleans all buildable packages.
- */
- int do_clean();
+ /** Cleans buildable targets. If all is true, cleans all packages.
+ Otherwise cleans only the default package. */
+ int clean(bool all = false, bool dry_run = false);