Skip to contentSkip to conversation

classes/buildhistory: fix interaction with rm_work

PATCH New Paul Eggleton 1 participant 1 message Apr 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/buildhistory.bbclass |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/classes/buildhistory.bbclass +2 -3
index 8c9f794..1ac1a8b 100644
@@ -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
Signature · 1 line
1.7.10.4