sanity.bbclass: Fix to work with old versions of bitbake for now
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 6 May 2010 09:08:55 +0000 (10:08 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 6 May 2010 09:08:55 +0000 (10:08 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
classes/sanity.bbclass

index 0a1e868..dfb3010 100644 (file)
@@ -142,7 +142,8 @@ def check_sanity(e):
                        f = file(abifile, "w")
                        f.write(current_abi)
                 elif abi == "3" and current_abi == "4":
-                        bb.note("Converting staging from layout version 2 to layout version 3")
+                       import bb
+                       bb.note("Converting staging from layout version 2 to layout version 3")
                        os.system(bb.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots", e.data))
                        os.system(bb.data.expand("ln -s sysroots ${TMPDIR}/staging", e.data))
                        os.system(bb.data.expand("cd ${TMPDIR}/stamps; for i in */*do_populate_staging; do new=`echo $i | sed -e 's/do_populate_staging/do_populate_sysroot/'`; mv $i $new; done", e.data))