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/lib/bb/siggen.py | |
parent | fb7fa0159ef01239cb3de956d1b1c528fe02162b (diff) | |
download | poky-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/lib/bb/siggen.py')
-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): | |||
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: |