[oe-commits] Paul Eggleton : classes/buildhistory: fix interaction with rm_work

git at git.openembedded.org git at git.openembedded.org
Tue Apr 9 12:16:52 UTC 2013


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

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Apr  9 09:39:24 2013 +0100

classes/buildhistory: fix interaction with rm_work

Change do_write_srcrevs to a postfunc of do_fetch, avoiding a dependency
being created that causes large numbers of setscene tasks being executed
on every build with both buildhistory and rm_work being enabled.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

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

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 8c9f794..1ac1a8b 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -553,7 +553,8 @@ def _get_srcrev_values(d):
                 dict_tag_srcrevs[key] = rev
     return (dict_srcrevs, dict_tag_srcrevs)
 
-python do_write_srcrev() {
+do_fetch[postfuncs] += "write_srcrev"
+python write_srcrev() {
     pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True)
     srcrevfile = os.path.join(pkghistdir, 'latest_srcrev')
 
@@ -593,5 +594,3 @@ python do_write_srcrev() {
         if os.path.exists(srcrevfile):
             os.remove(srcrevfile)
 }
-
-addtask write_srcrev after do_fetch before do_build





More information about the Openembedded-commits mailing list