Add --release option 78/281278/1
authorbiao716.wang <biao716.wang@samsung.com>
Thu, 15 Sep 2022 06:34:14 +0000 (15:34 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Thu, 15 Sep 2022 06:34:14 +0000 (15:34 +0900)
Change-Id: Iea2b60d7498f08f78a8887e1b1eacdcdaf3ebd9c
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
gitbuildsys/cmd_build.py
tools/gbs

index 7e27c49..5b76dba 100644 (file)
@@ -304,6 +304,9 @@ def prepare_depanneur_opts(args):
     if args.profiling:
         cmd_opts += ['--profiling=%s' % args.profiling]
 
+    if args.release:
+        cmd_opts += ['--release=%s' % args.release]
+
     cmd_opts += ['--threads=%s' % args.threads]
     if args.kvm:
         loopdev = len([name for name in os.listdir('/dev') if bool(re.search("loop[0-9]",name))])
index 1cfc657..73233fa 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -350,6 +350,8 @@ def build_parser(parser):
                         help='Profiling report location to be used package ordering.')
     group.add_argument('--with-submodules', action='store_true',
                         help='build project with submodules togerther')
+    group.add_argument('--release', type=str,
+                        help='Override Release in spec file')
 
     parser.set_defaults(alias="lb")
     return parser