Support gen depends of exported sources 81/246881/1
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 5 Nov 2020 02:28:11 +0000 (11:28 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 5 Nov 2020 02:28:51 +0000 (11:28 +0900)
Change-Id: If2f0615b2d83771cf71c73f2e87f6a1a884ee97c

gitbuildsys/cmd_depends.py
tools/gbs

index fe4a8495bb7fab12acc3638bf6852307da6e70d5..d0e147100bc2aaedd353312c703f9e93ccc5ae27 100644 (file)
@@ -59,6 +59,9 @@ def prepare_depanneur_opts(args):
     cmd_opts += ['--packaging-dir=%s' % get_packaging_dir(args)]
     cmd_opts += ['--depends']
 
+    if args.style:
+        cmd_opts += ['--style=%s' % args.style]
+
     return cmd_opts
 
 def prepare_repos_and_build_conf(args, arch, profile):
index dac1127f491e4ee0d6e606a137b2625ad34b67cc..9b2b7cc15b027680c7dbf89cc91123882a429a49 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -627,6 +627,8 @@ def depends_parser(parser):
                         'included while generating tar ball')
     group.add_argument('--packaging-dir',
                         help='directory containing packaging files')
+    group.add_argument('--style', default='git',
+                        help='specify source type: git, or tar, default is git')
 
     return parser