]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/bb/siggen.py: ensure dumped signatures have group R/W
authorJoshua Lock <josh@linux.intel.com>
Sat, 12 May 2012 01:21:51 +0000 (18:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 May 2012 19:09:54 +0000 (20:09 +0100)
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>
bitbake/lib/bb/siggen.py

index ca26919c9e974cc483441843cf998bdf556d8f77..5a0b80e8a9e7c9a363eb74ed7d4a5bad75843210 100644 (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: