add --export-only feature 47/206847/1 submit/devel/20190730.074523 submit/devel/20190902.233256
authorbiao716.wang <biao716.wang@samsung.com>
Wed, 29 May 2019 12:25:39 +0000 (21:25 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Wed, 29 May 2019 12:26:37 +0000 (21:26 +0900)
Change-Id: I2113c41ff2feebce6da3154310a138058307a478
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
gitbuildsys/cmd_build.py
tools/gbs

index bb44189..b6641f5 100644 (file)
@@ -243,6 +243,8 @@ def prepare_depanneur_opts(args):
         cmd_opts += ['--disable-debuginfo']
     if args.style:
         cmd_opts += ['--style=%s' % args.style]
+    if args.export_only:
+        cmd_opts += ['--export-only']
     #
     if args.package_list:
         package_list = args.package_list.split(',')
index f5cf354..4a03e5b 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -334,6 +334,8 @@ def build_parser(parser):
                         help='Do not create debuginfo packages when building')
     group.add_argument('--style', default='git',
                         help='specify source type: git, or tar, default is git')
+    group.add_argument('--export-only', action='store_true',
+                        help='only export, not building')
     parser.set_defaults(alias="lb")
     return parser