From 843aedf6b0971dad955dc0eccfd8199373f05519 Mon Sep 17 00:00:00 2001 From: "y0169.zhang" Date: Sat, 11 Feb 2017 11:59:13 +0900 Subject: [PATCH] Add not export source option Change-Id: Ia7236e6771d27cfce36d65374133e77d69786a72 --- data/gbs.sh | 2 +- gitbuildsys/cmd_build.py | 2 ++ tools/gbs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/gbs.sh b/data/gbs.sh index 0fe30fb..1f9e62a 100644 --- a/data/gbs.sh +++ b/data/gbs.sh @@ -84,7 +84,7 @@ __gbs () --arch= --repository= --dist= --buildroot= --clean --include-all --extra-packs= --spec= --commit= --cache --skip-conf-repos --profile= --noinit --keep-packs --use-higher-deps - --clean-repos --define --baselibs + --not-export-source --clean-repos --define --baselibs " cr_opts=" --profile= --tmpfs --ks-file diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index 4c9a651..7c67bdb 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -220,6 +220,8 @@ def prepare_depanneur_opts(args): cmd_opts += ['--keep-packs'] if args.use_higher_deps: cmd_opts += ['--use-higher-deps'] + if args.not_export_source: + cmd_opts += ['--not-export-source'] if args.baselibs: cmd_opts += ['--baselibs'] if args.skip_srcrpm: diff --git a/tools/gbs b/tools/gbs index e27639e..edc6823 100755 --- a/tools/gbs +++ b/tools/gbs @@ -229,6 +229,8 @@ def build_parser(parser): help='The initrd of kvm machine') group.add_argument('--vm-kernel', type=str, default='/usr/share/gbs/vmlinuz', help='The kernel of kvm machine') + group.add_argument('--not-export-source', action='store_true', + help='Do not export source, use git source to build directly') group = parser.add_argument_group('speed up building options') group.add_argument('--incremental', action='store_true', -- 2.7.4