[oe-commits] Chris Larson : base.bbclass: revert removal of base_set_filespath until the refs can be removed.

GIT User account git at amethyst.openembedded.net
Sat Mar 21 20:36:57 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f3a6785d8a91e1f1763f48a5981f7e2a8d37f151
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f3a6785d8a91e1f1763f48a5981f7e2a8d37f151

Author: Chris Larson <clarson at kergoth.com>
Date:   Sat Mar 21 21:34:03 2009 -0700

base.bbclass: revert removal of base_set_filespath until the refs can be removed.

Also added a deprecation message to it.

Signed-off-by: Chris Larson <clarson at kergoth.com>

---

 classes/base.bbclass |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 9bcd2ab..952952b 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -209,6 +209,17 @@ def base_package_name(d):
 
   return pn
 
+def base_set_filespath(path, d):
+	import os, bb
+	bb.note("base_set_filespath usage is deprecated, %s should be fixed" % d.getar("P", 1))
+	filespath = []
+	# The ":" ensures we have an 'empty' override
+	overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":"
+	for p in path:
+		for o in overrides.split(":"):
+			filespath.append(os.path.join(p, o))
+	return ":".join(filespath)
+
 def oe_filter(f, str, d):
 	from re import match
 	return " ".join(filter(lambda x: match(f, x, 0), str.split()))





More information about the Openembedded-commits mailing list