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>
This commit is contained in:
Joshua Lock 2012-05-11 18:21:51 -07:00 committed by Richard Purdie
parent fb7fa0159e
commit 63ccc3f266
1 changed files with 4 additions and 2 deletions

View File

@ -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: