-private:
- /** Creates targets for all packages and prepares them for building.
- Returns 0 if everything went ok, -1 if something bad happened and a build
- shouldn't be attempted. */
- int create_targets();
-
- /** Supervises the build process, starting new actions 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);