summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 241dace6d9..356fe7ec18 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -686,7 +686,11 @@ def sstate_package(ss, d):
686 bb.build.exec_func(f, d, (sstatebuild,)) 686 bb.build.exec_func(f, d, (sstatebuild,))
687 687
688 # SSTATE_PKG may have been changed by sstate_report_unihash 688 # SSTATE_PKG may have been changed by sstate_report_unihash
689 bb.siggen.dump_this_task(d.getVar('SSTATE_PKG') + ".siginfo", d) 689 siginfo = d.getVar('SSTATE_PKG') + ".siginfo"
690 if not os.path.exists(siginfo):
691 bb.siggen.dump_this_task(siginfo, d)
692 else:
693 os.utime(siginfo, None)
690 694
691 return 695 return
692 696
@@ -1110,8 +1114,11 @@ python sstate_eventhandler() {
1110 d.setVar("SSTATE_PKGSPEC", "${SSTATE_SWSPEC}") 1114 d.setVar("SSTATE_PKGSPEC", "${SSTATE_SWSPEC}")
1111 d.setVar("SSTATE_EXTRAPATH", "") 1115 d.setVar("SSTATE_EXTRAPATH", "")
1112 d.setVar("SSTATE_CURRTASK", taskname) 1116 d.setVar("SSTATE_CURRTASK", taskname)
1113 sstatepkg = d.getVar('SSTATE_PKG') 1117 siginfo = d.getVar('SSTATE_PKG') + ".siginfo"
1114 bb.siggen.dump_this_task(sstatepkg + ".siginfo", d) 1118 if not os.path.exists(siginfo):
1119 bb.siggen.dump_this_task(siginfo, d)
1120 else:
1121 os.utime(siginfo, None)
1115} 1122}
1116 1123
1117SSTATE_PRUNE_OBSOLETEWORKDIR ?= "1" 1124SSTATE_PRUNE_OBSOLETEWORKDIR ?= "1"