From: SoonKyu Park Date: Wed, 9 Sep 2015 07:18:54 +0000 (+0900) Subject: Add --fail-fast option X-Git-Tag: released-tools-18.01.7~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0732a2cd71bbf068aa4751f17d72145eda2d2571;p=tools%2Fgbs.git Add --fail-fast option Change-Id: Id6af3900911be3d7b8714b42db4590067db7bb67 --- diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index dcc0b50..9bcce37 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -222,6 +222,8 @@ def prepare_depanneur_opts(args): cmd_opts += ['--baselibs'] if args.skip_srcrpm: cmd_opts += ['--skip-srcrpm'] + if args.fail_fast: + cmd_opts += ['--fail-fast'] # if args.package_list: package_list = args.package_list.split(',') diff --git a/tools/gbs b/tools/gbs index 35371ee..2a32553 100755 --- a/tools/gbs +++ b/tools/gbs @@ -201,6 +201,8 @@ def build_parser(parser): group.add_argument('--clean-repos', action='store_true', help='clean up local repos created by gbs build ' 'before building packages') + group.add_argument('--fail-fast', action='store_true', + help='stop build if one of packages fails') group.add_argument('--extra-packs', help='specify extra packages to install to build root, ' 'Multiple packages can be separated by comma(,)')