* [PATCH] classes/buildhistory: fix interaction with rm_work
@ 2013-04-09 8:39 Paul Eggleton
0 siblings, 0 replies; only message in thread
From: Paul Eggleton @ 2013-04-09 8:39 UTC (permalink / raw)
To: openembedded-core
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@linux.intel.com>
---
meta/classes/buildhistory.bbclass | 5 ++---
1 file 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
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-09 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 8:39 [PATCH] classes/buildhistory: fix interaction with rm_work Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox