summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenryk Ploetz <henryk@openmoko.org>2007-10-03 01:04:46 +0000
committerCliff Brake <cbrake@bec-systems.com>2007-10-03 01:04:46 +0000
commitc682389deb5384a1a18c9755376b0d255a9c3482 (patch)
tree9bd0d181d7973df8d035620806ed01bbb0133ef1
parentbcaec55e4e64f6bca21cf0e50eaec787bd29b735 (diff)
mono.bbclass: fix whitespace problem
- fix for the problem experienced by scruggs on IRC today. There was an inconsistency in the amount and type of whitespace used in the python anonymous blocks between mono.bbclass and multimachine.bbclass. - fixed a small problem in the error output of mono_do_clilibs
-rw-r--r--classes/mono.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/mono.bbclass b/classes/mono.bbclass
index dcf5f7272c..c50274ed0c 100644
--- a/classes/mono.bbclass
+++ b/classes/mono.bbclass
@@ -186,7 +186,7 @@ python mono_do_clilibs() {
if not dep_pkg in deps:
deps.append(dep_pkg)
else:
- bb.note("Couldn't find CLI library provider for %s" % n)
+ bb.note("Couldn't find CLI library provider for %s" % (n,))
deps_file = os.path.join(pkgdest, pkg + ".clilibdeps")
if os.path.exists(deps_file):
@@ -198,7 +198,8 @@ python mono_do_clilibs() {
fd.close()
}
-python() {
+def mono_after_parse(d):
+ import bb
# Insert mono_do_clilibs into PACKAGEFUNCS
# Needs to be called after populate_packages, but before read_shlibdeps
PACKAGEFUNCS = bb.data.getVar("PACKAGEFUNCS", d, 1)
@@ -211,4 +212,7 @@ python() {
i = PACKAGEFUNCS.index("populate_packages")
PACKAGEFUNCS.insert(i+1, "mono_do_clilibs")
bb.data.setVar("PACKAGEFUNCS", " ".join(PACKAGEFUNCS), d)
+
+python () {
+ mono_after_parse(d)
}