From dfd0d2b662a9271a60df591f083517505160e5fe Mon Sep 17 00:00:00 2001 From: "jingui.ren" Date: Tue, 14 Aug 2018 17:07:16 +0800 Subject: [PATCH] add --style parameter Change-Id: I33af2f7cc4a20ba029b8fbc1e37a3d7b839d37af --- gitbuildsys/cmd_build.py | 2 ++ tools/gbs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index 9e2d2fa..bb44189 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -241,6 +241,8 @@ def prepare_depanneur_opts(args): cmd_opts += ['--keepgoing=%s' % args.keepgoing] if args.disable_debuginfo: cmd_opts += ['--disable-debuginfo'] + if args.style: + cmd_opts += ['--style=%s' % args.style] # if args.package_list: package_list = args.package_list.split(',') diff --git a/tools/gbs b/tools/gbs index 1458fc5..f5cf354 100755 --- a/tools/gbs +++ b/tools/gbs @@ -332,7 +332,8 @@ def build_parser(parser): 'depend on them, such as A B C depends D, first build D and then build A,B,C') group.add_argument('--disable-debuginfo', action='store_true', help='Do not create debuginfo packages when building') - + group.add_argument('--style', default='git', + help='specify source type: git, or tar, default is git') parser.set_defaults(alias="lb") return parser -- 2.7.4