From e1068575aa0c520766eb0b76167eb833edbce888 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Wed, 29 May 2019 21:25:39 +0900 Subject: [PATCH] add --export-only feature Change-Id: I2113c41ff2feebce6da3154310a138058307a478 Signed-off-by: biao716.wang --- gitbuildsys/cmd_build.py | 2 ++ tools/gbs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index bb44189..b6641f5 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -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(',') diff --git a/tools/gbs b/tools/gbs index f5cf354..4a03e5b 100755 --- 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 -- 2.7.4