summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-12-14 21:13:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-16 10:23:23 +0000
commit3c59b1bf93adb0b9f723bda1d8702c8720733677 (patch)
treed1939643e2d02f0ce2e9ef33e235cd23cd5000d3 /meta/classes/package.bbclass
parentc0f2890c01882e9ea14e781c044f3a84f75bd0fc (diff)
downloadpoky-3c59b1bf93adb0b9f723bda1d8702c8720733677.tar.gz
meta: remove True option to getVarFlag calls
getVarFlag() now defaults to expanding by default, thus remove the True option from getVarFlag() calls with a regex search and replace. Search made with the following regex: getVarFlag ?\(( ?[^,()]*, ?[^,()]*), True\) (From OE-Core rev: 2dea9e490a98377010b3d4118d054814c317a735) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 27034653b8..1f79188236 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -462,7 +462,7 @@ def get_package_additional_metadata (pkg_type, d):
462 if d.getVar(key, False) is None: 462 if d.getVar(key, False) is None:
463 continue 463 continue
464 d.setVarFlag(key, "type", "list") 464 d.setVarFlag(key, "type", "list")
465 if d.getVarFlag(key, "separator", True) is None: 465 if d.getVarFlag(key, "separator") is None:
466 d.setVarFlag(key, "separator", "\\n") 466 d.setVarFlag(key, "separator", "\\n")
467 metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)] 467 metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)]
468 return "\n".join(metadata_fields).strip() 468 return "\n".join(metadata_fields).strip()
@@ -1963,7 +1963,7 @@ python package_depchains() {
1963 1963
1964 for suffix in pkgs: 1964 for suffix in pkgs:
1965 for pkg in pkgs[suffix]: 1965 for pkg in pkgs[suffix]:
1966 if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', True): 1966 if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs'):
1967 continue 1967 continue
1968 (base, func) = pkgs[suffix][pkg] 1968 (base, func) = pkgs[suffix][pkg]
1969 if suffix == "-dev": 1969 if suffix == "-dev":