From c682389deb5384a1a18c9755376b0d255a9c3482 Mon Sep 17 00:00:00 2001 From: Henryk Ploetz Date: Wed, 3 Oct 2007 01:04:46 +0000 Subject: 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 --- classes/mono.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'classes') 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) } -- cgit 1.2.3-korg