diff options
| -rw-r--r-- | 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 8c9f7942ee..1ac1a8b202 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
| @@ -553,7 +553,8 @@ def _get_srcrev_values(d): | |||
| 553 | dict_tag_srcrevs[key] = rev | 553 | dict_tag_srcrevs[key] = rev |
| 554 | return (dict_srcrevs, dict_tag_srcrevs) | 554 | return (dict_srcrevs, dict_tag_srcrevs) |
| 555 | 555 | ||
| 556 | python do_write_srcrev() { | 556 | do_fetch[postfuncs] += "write_srcrev" |
| 557 | python write_srcrev() { | ||
| 557 | pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True) | 558 | pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True) |
| 558 | srcrevfile = os.path.join(pkghistdir, 'latest_srcrev') | 559 | srcrevfile = os.path.join(pkghistdir, 'latest_srcrev') |
| 559 | 560 | ||
| @@ -593,5 +594,3 @@ python do_write_srcrev() { | |||
| 593 | if os.path.exists(srcrevfile): | 594 | if os.path.exists(srcrevfile): |
| 594 | os.remove(srcrevfile) | 595 | os.remove(srcrevfile) |
| 595 | } | 596 | } |
| 596 | |||
| 597 | addtask write_srcrev after do_fetch before do_build | ||
