All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/33] lib/oe/utils: Add build_depends_string function
@ 2017-01-19 22:52 Richard Purdie
  2017-01-19 22:52 ` [PATCH 02/33] classes/package*: Add support for PACKAGE_WRITE_DEPS Richard Purdie
                   ` (31 more replies)
  0 siblings, 32 replies; 34+ messages in thread
From: Richard Purdie @ 2017-01-19 22:52 UTC (permalink / raw)
  To: openembedded-core

This is useful when manipulating depends strings for task [depends]
flags and is slightly easier to parse than some inline python.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/lib/oe/utils.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 76806b5..330a5ff 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -97,6 +97,10 @@ def param_bool(cfg, field, dflt = None):
         return False
     raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value))
 
+def build_depends_string(depends, task):
+    """Append a taskname to a string of dependencies as used by the [depends] flag"""
+    return " ".join(dep + ":" + task for dep in depends.split())
+
 def inherits(d, *classes):
     """Return True if the metadata inherits any of the specified classes"""
     return any(bb.data.inherits_class(cls, d) for cls in classes)
-- 
2.7.4



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

end of thread, other threads:[~2017-02-16  8:04 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 22:52 [PATCH 01/33] lib/oe/utils: Add build_depends_string function Richard Purdie
2017-01-19 22:52 ` [PATCH 02/33] classes/package*: Add support for PACKAGE_WRITE_DEPS Richard Purdie
2017-01-19 22:52 ` [PATCH 03/33] sstate: Drop the depchain isPostDep() checks Richard Purdie
2017-01-19 22:52 ` [PATCH 04/33] gtk-icon-cache: Add PACKAGE_WRITE_DEPS for postinst Richard Purdie
2017-01-19 22:52 ` [PATCH 05/33] kernel-module-split: " Richard Purdie
2017-01-19 22:52 ` [PATCH 06/33] pixbufcache: " Richard Purdie
2017-01-19 22:52 ` [PATCH 07/33] systemd: " Richard Purdie
2017-01-19 22:52 ` [PATCH 08/33] keymaps: " Richard Purdie
2017-01-19 22:52 ` [PATCH 09/33] v86d: " Richard Purdie
2017-01-19 22:52 ` [PATCH 10/33] initscripts: " Richard Purdie
2017-01-19 22:52 ` [PATCH 11/33] psplash: " Richard Purdie
2017-01-19 22:52 ` [PATCH 12/33] systemd-compat-units: " Richard Purdie
2017-01-19 22:52 ` [PATCH 13/33] modutils-initsripts: " Richard Purdie
2017-01-19 22:52 ` [PATCH 14/33] matchbox-session-sato: " Richard Purdie
2017-01-19 22:52 ` [PATCH 15/33] ca-certificates: " Richard Purdie
2017-01-19 22:52 ` [PATCH 16/33] useradd: " Richard Purdie
2017-01-19 22:52 ` [PATCH 17/33] nss: Add PACKAGE_WRITE_DEPS Richard Purdie
2017-01-19 22:53 ` [PATCH 18/33] linux-dtb: Add PACKAGE_WRITE_DEP for postinstall Richard Purdie
2017-01-19 22:53 ` [PATCH 19/33] xorg-font-common: Add PACKAGE_WRITE_DEPS for postinst Richard Purdie
2017-01-19 22:53 ` [PATCH 20/33] shadow: " Richard Purdie
2017-01-19 22:53 ` [PATCH 21/33] eudev: Add PACKAGE_WRITE_DEPS for postinstall Richard Purdie
2017-01-19 22:53 ` [PATCH 22/33] systemd: Add PACKAGE_WRITE_DEPS for postinst Richard Purdie
2017-01-19 22:53 ` [PATCH 23/33] dbus: " Richard Purdie
2017-01-19 22:53 ` [PATCH 24/33] update-rc.d: " Richard Purdie
2017-01-19 22:53 ` [PATCH 25/33] update-alternatives.bbclass: " Richard Purdie
2017-01-19 22:53 ` [PATCH 26/33] mime.bbclass: " Richard Purdie
2017-01-19 22:53 ` [PATCH 27/33] gtk-immodules-cache: " Richard Purdie
2017-01-19 22:53 ` [PATCH 28/33] gsettings: " Richard Purdie
2017-01-19 22:53 ` [PATCH 29/33] gio-module-cache: " Richard Purdie
2017-01-19 22:53 ` [PATCH 30/33] gconf.bbclass: " Richard Purdie
2017-01-19 22:53 ` [PATCH 31/33] fontcache.bbclass: " Richard Purdie
2017-01-19 22:53 ` [PATCH 32/33] cantarell-fonts: inherit pkgconfig Richard Purdie
2017-01-19 22:53 ` [PATCH 33/33] kernel.bbclass: Add PACKAGE_WRITE_DEPS for postinst Richard Purdie
2017-02-16  8:04   ` Robert Yang

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.