diff options
author | Derek Straka <derek@asterius.io> | 2016-05-01 10:27:45 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-05-03 22:21:25 -0400 |
commit | a3617f24641962e6732c8369ce9256ae4be5a2a0 (patch) | |
tree | 6458b580519d28f81f298852fa7280340e0ce874 /recipes-containers/lxc | |
parent | 1fd94d853545b55173b1f0e2cf683a5d21f8cd7b (diff) | |
download | meta-virtualization-a3617f24641962e6732c8369ce9256ae4be5a2a0.tar.gz |
globally replace 'base_contains' calls with 'bb.utils.contains'
The 'base_contains' is now deprecated and only kept as a compatibility method. It will be removed in future releases.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/lxc')
-rw-r--r-- | recipes-containers/lxc/lxc_2.0.0.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-containers/lxc/lxc_2.0.0.bb b/recipes-containers/lxc/lxc_2.0.0.bb index 34aab38a..9f01edde 100644 --- a/recipes-containers/lxc/lxc_2.0.0.bb +++ b/recipes-containers/lxc/lxc_2.0.0.bb | |||
@@ -38,7 +38,7 @@ S = "${WORKDIR}/${BPN}-${PV}" | |||
38 | 38 | ||
39 | # Let's not configure for the host distro. | 39 | # Let's not configure for the host distro. |
40 | # | 40 | # |
41 | PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}" | 41 | PTEST_CONF = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}" |
42 | EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}" | 42 | EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}" |
43 | 43 | ||
44 | EXTRA_OECONF += "--with-init-script=\ | 44 | EXTRA_OECONF += "--with-init-script=\ |
@@ -48,7 +48,7 @@ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | |||
48 | EXTRA_OECONF += "--enable-log-src-basename" | 48 | EXTRA_OECONF += "--enable-log-src-basename" |
49 | 49 | ||
50 | PACKAGECONFIG ??= "templates \ | 50 | PACKAGECONFIG ??= "templates \ |
51 | ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | 51 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ |
52 | " | 52 | " |
53 | PACKAGECONFIG[doc] = "--enable-doc --enable-api-docs,--disable-doc --disable-api-docs,," | 53 | PACKAGECONFIG[doc] = "--enable-doc --enable-api-docs,--disable-doc --disable-api-docs,," |
54 | PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,," | 54 | PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,," |
@@ -109,7 +109,7 @@ do_install_append() { | |||
109 | for i in `grep -l "#! */bin/bash" ${D}${datadir}/lxc/hooks/*`; do \ | 109 | for i in `grep -l "#! */bin/bash" ${D}${datadir}/lxc/hooks/*`; do \ |
110 | sed -e 's|#! */bin/bash|#!/bin/sh|' -i $i; done | 110 | sed -e 's|#! */bin/bash|#!/bin/sh|' -i $i; done |
111 | 111 | ||
112 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 112 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
113 | install -d ${D}${sysconfdir}/init.d | 113 | install -d ${D}${sysconfdir}/init.d |
114 | install -m 755 config/init/sysvinit/lxc* ${D}${sysconfdir}/init.d | 114 | install -m 755 config/init/sysvinit/lxc* ${D}${sysconfdir}/init.d |
115 | fi | 115 | fi |