From: Joshua Lock <josh@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 2/2] lib/bb/siggen.py: ensure dumped signatures have group R/W
Date: Fri, 11 May 2012 18:21:51 -0700 [thread overview]
Message-ID: <1336785711-13353-1-git-send-email-josh@linux.intel.com> (raw)
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@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
next reply other threads:[~2012-05-12 1:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 1:21 Joshua Lock [this message]
2012-05-13 19:02 ` [PATCH 2/2] lib/bb/siggen.py: ensure dumped signatures have group R/W Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336785711-13353-1-git-send-email-josh@linux.intel.com \
--to=josh@linux.intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox