add --style parameter 16/188016/1
authorjingui.ren <jingui.ren@samsung.com>
Tue, 14 Aug 2018 09:07:16 +0000 (17:07 +0800)
committerjingui.ren <jingui.ren@samsung.com>
Thu, 30 Aug 2018 09:05:31 +0000 (17:05 +0800)
Change-Id: I33af2f7cc4a20ba029b8fbc1e37a3d7b839d37af
Signed-off-by: jingui.ren <jingui.ren@samsung.com>
gitbuildsys/cmd_build.py
tools/gbs

index 9e2d2fa..bb44189 100644 (file)
@@ -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(',')
index 1458fc5..f5cf354 100755 (executable)
--- 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