summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/siggen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index ca26919c9e..5a0b80e8a9 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -201,8 +201,10 @@ class SignatureGeneratorBasic(SignatureGenerator):
201 for dep in data['runtaskdeps']: 201 for dep in data['runtaskdeps']:
202 data['runtaskhashes'][dep] = self.taskhash[dep] 202 data['runtaskhashes'][dep] = self.taskhash[dep]
203 203
204 p = pickle.Pickler(open(sigfile, "wb"), -1) 204 with open(sigfile, "wb") as f:
205 p.dump(data) 205 p = pickle.Pickler(f, -1)
206 p.dump(data)
207 os.chmod(sigfile, 0664)
206 208
207 def dump_sigs(self, dataCache): 209 def dump_sigs(self, dataCache):
208 for fn in self.taskdeps: 210 for fn in self.taskdeps: