Add not export source option
authory0169.zhang <y0169.zhang@samsung.com>
Sat, 11 Feb 2017 02:59:13 +0000 (11:59 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Mon, 20 Feb 2017 10:48:39 +0000 (19:48 +0900)
Change-Id: Ia7236e6771d27cfce36d65374133e77d69786a72

data/gbs.sh
gitbuildsys/cmd_build.py
tools/gbs

index 0fe30fb..1f9e62a 100644 (file)
@@ -84,7 +84,7 @@ __gbs ()
         --arch= --repository= --dist= --buildroot= --clean
         --include-all --extra-packs= --spec= --commit= --cache
         --skip-conf-repos --profile= --noinit --keep-packs --use-higher-deps
-        --clean-repos --define --baselibs
+        --not-export-source --clean-repos --define --baselibs
     "
     cr_opts="
         --profile= --tmpfs --ks-file
index a9b5292..c463d07 100644 (file)
@@ -220,6 +220,8 @@ def prepare_depanneur_opts(args):
         cmd_opts += ['--keep-packs']
     if args.use_higher_deps:
         cmd_opts += ['--use-higher-deps']
+    if args.not_export_source:
+        cmd_opts += ['--not-export-source']
     if args.baselibs:
         cmd_opts += ['--baselibs']
     if args.skip_srcrpm:
index 935db9e..4555359 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -226,6 +226,8 @@ def build_parser(parser):
                         help='The initrd of kvm machine')
     group.add_argument('--vm-kernel', type=str, default='/usr/share/gbs/vmlinuz',
                         help='The kernel of kvm machine')
+    group.add_argument('--not-export-source', action='store_true',
+                        help='Do not export source, use git source to build directly')
 
     group = parser.add_argument_group('speed up building options')
     group.add_argument('--incremental', action='store_true',