[bitbake-devel] [PATCH 2/2] lib/bb/siggen.py: ensure dumped signatures have group R/W
Joshua Lock
josh at linux.intel.com
Sat May 12 01:21:51 UTC 2012
We anticipate signatures being shared amongst peers in a group so ensure
they have rw-rw-r-- permissions to facilitate this.
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
lib/bb/siggen.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index ca26919..5a0b80e 100644
--- a/lib/bb/siggen.py
+++ b/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:
--
1.7.7.6
More information about the bitbake-devel
mailing list