From c05e755ced4ce4d528ffc5b34ddb44892e2f938f Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Tue, 25 Dec 2012 18:01:03 +0000 Subject: Add --full to the build command --- diff --git a/Makefile.commands b/Makefile.commands index be82830..17908dd 100644 --- a/Makefile.commands +++ b/Makefile.commands @@ -10,7 +10,7 @@ pull: @$(COMMANDS_DIR)/pull build: - @$(COMMANDS_DIR)/build + @$(COMMANDS_DIR)/build $(ARGS) run: @$(COMMANDS_DIR)/run diff --git a/commands/build b/commands/build index d86fecd..714e783 100755 --- a/commands/build +++ b/commands/build @@ -10,6 +10,7 @@ from devbot import build parser = argparse.ArgumentParser() parser.add_argument("module", nargs="?", help="name of the module to build") +parser.add_argument("--full", action="store_true", help="force a full build") args = parser.parse_args() common.setup() @@ -20,7 +21,7 @@ if not system.check(skip_if_unchanged=True): if args.module: success = build.build_one(args.module) else: - success = build.build() + success = build.build(full=args.full) if not success: sys.exit(1) diff --git a/devbot/build.py b/devbot/build.py index 06d6874..1e33c70 100644 --- a/devbot/build.py +++ b/devbot/build.py @@ -43,12 +43,12 @@ def pull(): return True -def build(): +def build(full=False): environ.setup() _ccache_reset() - if state.full_build_is_required(): + if full or state.full_build_is_required(): clean() state.full_build_touch() -- cgit v0.9.1