Add '--no-build-count' option. sandbox/xuwc/use_build_count
authorwanchao-xu <wanchao.xu@samsung.com>
Tue, 11 Jun 2024 06:42:08 +0000 (14:42 +0800)
committerwanchao-xu <wanchao.xu@samsung.com>
Wed, 17 Jul 2024 06:01:28 +0000 (14:01 +0800)
* This option is used for '--use-build-count' option of depanneur package.

Change-Id: I04ae3f591e91a39ad8bb580231617c630c9c6254
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
gitbuildsys/cmd_build.py
tools/gbs

index ae10dd67d5e89b81ad2a1ee0ac1c9e29ad9005e3..553271c254040010460cf86e997a6a118d6c1274 100644 (file)
@@ -251,6 +251,8 @@ def prepare_depanneur_simple_opts(args):
         cmd_opts += ['--with-submodules']
     if args.nocumulate:
         cmd_opts += ['--nocumulate']
+    if not args.no_build_count:
+        cmd_opts += ['--use-build-count']
 
     return cmd_opts
 
index 5ef1f5fcd7da19654a15be8b21a9de8185732fff..ae5aa94e8ae8d8a9d42a251f0dc870a347fcd39c 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -197,6 +197,9 @@ def build_parser(parser):
     group.add_argument('--debug', action='store_true', help='debug output')
     group.add_argument('--baselibs', action='store_true', help='create -32bit'
                        '/-64bit/-x86 rpms for other architectures')
+    group.add_argument('--no-build-count', action='store_true',
+                        help='this option disables build count which is set '
+                        'into RPM package name after building package')
 
     group = parser.add_argument_group('build env options')
     group.add_argument('-B', '--buildroot',