diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-05-11 18:21:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-13 20:09:54 +0100 |
commit | 63ccc3f266496b909eec472a1671939498d6e5eb (patch) | |
tree | 7b9314867234b71e2a6958e36eb467fe977dc3a9 /bitbake | |
parent | fb7fa0159ef01239cb3de956d1b1c528fe02162b (diff) | |
download | openembedded-core-contrib-63ccc3f266496b909eec472a1671939498d6e5eb.tar.gz |
lib/bb/siggen.py: ensure dumped signatures have group R/W
We anticipate signatures being shared amongst peers in a group so ensure
they have rw-rw-r-- permissions to facilitate this.
(Bitbake rev: e4716f316152cafabebcefec7b387edeb02ad3eb)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 6 |
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): 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: |