summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-02 23:45:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-04 23:39:00 +0000
commit7fa6eeba1c1e4667820c8543343083fad75cabee (patch)
tree1f1c38bf800d5b8aacf00586cb3ce5145109d4f5 /meta/classes/package.bbclass
parent252e64550a77b8e4a452d4f124bb8b378054d4de (diff)
downloadpoky-7fa6eeba1c1e4667820c8543343083fad75cabee.tar.gz
classes/lib: Add expand parameter to getVarFlag
This sets the scene for removing the default False for expansion from getVarFlag. This would later allow True to become the default. On the most part this is an automatic translation with: sed -e 's:\(\.getVarFlag([^,()]*, [^,()]*\)):\1, True):g' -i `grep -ril getVar *` In this case, the default was False, but True was used since in most cases here expansion would be expected. (From OE-Core rev: 42a10788e89b07b14a150ced07113566cf99fcdd) 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 854591bb7d..93b275c56c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -429,7 +429,7 @@ def get_package_additional_metadata (pkg_type, d):
429 if d.getVar(key, False) is None: 429 if d.getVar(key, False) is None:
430 continue 430 continue
431 d.setVarFlag(key, "type", "list") 431 d.setVarFlag(key, "type", "list")
432 if d.getVarFlag(key, "separator") is None: 432 if d.getVarFlag(key, "separator", True) is None:
433 d.setVarFlag(key, "separator", "\\n") 433 d.setVarFlag(key, "separator", "\\n")
434 metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)] 434 metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)]
435 return "\n".join(metadata_fields).strip() 435 return "\n".join(metadata_fields).strip()
@@ -1916,7 +1916,7 @@ python package_depchains() {
1916 1916
1917 for suffix in pkgs: 1917 for suffix in pkgs:
1918 for pkg in pkgs[suffix]: 1918 for pkg in pkgs[suffix]:
1919 if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs'): 1919 if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', True):
1920 continue 1920 continue
1921 (base, func) = pkgs[suffix][pkg] 1921 (base, func) = pkgs[suffix][pkg]
1922 if suffix == "-dev": 1922 if suffix == "-dev":