[oe-commits] Richard Purdie : staging/insane.bbclass: Move legacy do_stage check iinto insane.bbclass

git at git.openembedded.org git at git.openembedded.org
Wed Feb 6 09:38:32 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: e045456776507be261be43808d95a2c1c890d359
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e045456776507be261be43808d95a2c1c890d359

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sun Feb  3 16:59:09 2013 +0000

staging/insane.bbclass: Move legacy do_stage check iinto insane.bbclass

We might as well put all the sanity checks in one place.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/insane.bbclass  |    3 +++
 meta/classes/staging.bbclass |    5 -----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 1905c0d..58fc70c 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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':
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index da90d31..643352d 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -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))
-}
-
 





More information about the Openembedded-commits mailing list