Add --use-higher-deps option, it means which repo provides higher version deps, use it 68/89268/1
authory0169.zhang <y0169.zhang@samsung.com>
Thu, 18 Aug 2016 03:06:12 +0000 (12:06 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Fri, 23 Sep 2016 02:07:59 +0000 (11:07 +0900)
Change-Id: I7e0d2b80b8a956eb36ab548494c8a8fe7f0d8ef1

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

index 2278f9e..0fe30fb 100644 (file)
@@ -83,7 +83,7 @@ __gbs ()
     lb_opts="
         --arch= --repository= --dist= --buildroot= --clean
         --include-all --extra-packs= --spec= --commit= --cache
-        --skip-conf-repos --profile= --noinit --keep-packs
+        --skip-conf-repos --profile= --noinit --keep-packs --use-higher-deps
         --clean-repos --define --baselibs
     "
     cr_opts="
index 143756b..3ef6596 100644 (file)
@@ -218,6 +218,8 @@ def prepare_depanneur_opts(args):
         cmd_opts += ['--no-configure']
     if args.keep_packs:
         cmd_opts += ['--keep-packs']
+    if args.use_higher_deps:
+        cmd_opts += ['--use-higher-deps']
     if args.baselibs:
         cmd_opts += ['--baselibs']
     if args.skip_srcrpm:
index 5cc1dab..6f2210d 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -213,6 +213,8 @@ def build_parser(parser):
                         help='keep unused packages in build root. without '
                         'this option, unused packages will be removed from '
                         'build root')
+    group.add_argument('--use-higher-deps', action='store_true',
+                        help='Which repo provides higher version deps, use it')
 
     group = parser.add_argument_group('speed up building options')
     group.add_argument('--incremental', action='store_true',