]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging/insane.bbclass: Move legacy do_stage check iinto insane.bbclass
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Feb 2013 16:59:09 +0000 (16:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 13:12:18 +0000 (13:12 +0000)
We might as well put all the sanity checks in one place.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass
meta/classes/staging.bbclass

index 1905c0dfddc6012adb1fb38eaa1b38e0359d61df..58fc70c56f50eaf5f1629b87662fe3dfb71ad5e6 100644 (file)
@@ -903,6 +903,9 @@ python () {
     # Check various variables
     ###########################################################################
 
+    if d.getVar('do_stage', True) is not None:
+        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with OE-core" % d.getVar("FILE", True))
+
     issues = []
     if (d.getVar('PACKAGES', True) or "").split():
         for var in 'RDEPENDS', 'RRECOMMENDS', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
index da90d31678ace9fce2e3bef9a6cad8b4322f67a6..643352dc1ea54223aff86d7ff4c076ed4119dcac 100644 (file)
@@ -114,9 +114,4 @@ python do_populate_sysroot_setscene () {
 }
 addtask do_populate_sysroot_setscene
 
-python () {
-    if d.getVar('do_stage', True) is not None:
-        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with OE-core" % d.getVar("FILE", True))
-}
-