All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Do not suggest PREFERRED_PROVIDER for runtime providers.
@ 2016-02-18 11:34 Ismo Puustinen
  2016-02-18 15:15 ` Christopher Larson
  0 siblings, 1 reply; 3+ messages in thread
From: Ismo Puustinen @ 2016-02-18 11:34 UTC (permalink / raw)
  To: bitbake-devel

PREFERRED_PROVIDER affects only build-time dependencies. Do not suggest
the user to set it if the multiple providers are for runtime packages.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
---
 lib/bb/ui/crumbs/runningbuild.py | 3 ++-
 lib/bb/ui/knotty.py              | 3 ++-
 lib/bb/ui/toasterui.py           | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py
index 16a955d..0eacd4a 100644
--- a/lib/bb/ui/crumbs/runningbuild.py
+++ b/lib/bb/ui/crumbs/runningbuild.py
@@ -386,7 +386,8 @@ class RunningBuild (gobject.GObject):
         elif isinstance(event, bb.event.MultipleProviders):
             self.emit("log", "info", "multiple providers are available for %s%s (%s)" \
                                      % (event._is_runtime and "runtime " or "", event._item, ", ".join(event._candidates)))
-            self.emit("log", "info", "consider defining a PREFERRED_PROVIDER entry to match %s" % (event._item))
+            if not event._is_runtime:
+                self.emit("log", "info", "consider defining a PREFERRED_PROVIDER entry to match %s" % (event._item))
         elif isinstance(event, bb.event.NoProvider):
             msg = ""
             if event._runtime:
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index dff92bc..eb64963 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -452,7 +452,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
                 logger.info("multiple providers are available for %s%s (%s)", event._is_runtime and "runtime " or "",
                             event._item,
                             ", ".join(event._candidates))
-                logger.info("consider defining a PREFERRED_PROVIDER entry to match %s", event._item)
+                if not event._is_runtime:
+                    logger.info("consider defining a PREFERRED_PROVIDER entry to match %s", event._item)
                 continue
             if isinstance(event, bb.event.NoProvider):
                 if event._runtime:
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 32b1889..f7a2f38 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -257,7 +257,8 @@ def main(server, eventHandler, params):
                 logger.info("multiple providers are available for %s%s (%s)", event._is_runtime and "runtime " or "",
                             event._item,
                             ", ".join(event._candidates))
-                logger.info("consider defining a PREFERRED_PROVIDER entry to match %s", event._item)
+                if not event._is_runtime:
+                    logger.info("consider defining a PREFERRED_PROVIDER entry to match %s", event._item)
                 continue
 
             if isinstance(event, bb.event.NoProvider):
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-18 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 11:34 [PATCH] Do not suggest PREFERRED_PROVIDER for runtime providers Ismo Puustinen
2016-02-18 15:15 ` Christopher Larson
2016-02-18 15:23   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.