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): for dep in data['runtaskdeps']: data['runtaskhashes'][dep] = self.taskhash[dep] - p = pickle.Pickler(open(sigfile, "wb"), -1) - p.dump(data) + with open(sigfile, "wb") as f: + p = pickle.Pickler(f, -1) + p.dump(data) + os.chmod(sigfile, 0664) def dump_sigs(self, dataCache): for fn in self.taskdeps: