All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] Save the initial environment
@ 2011-07-18 22:33 Joshua Lock
  2011-07-18 22:33 ` [RFC PATCH 1/1] lib/bb: preserve a copy of the initial environment variables Joshua Lock
  2011-07-21 21:22 ` [RFC PATCH 0/1] Save the initial environment Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Joshua Lock @ 2011-07-18 22:33 UTC (permalink / raw)
  To: bitbake-devel

Both Chris' terminal work and my reparse command will benefit from a saved
copy of the initial enviornment. The Python docs indicate that the os.environ
map is captured when the os module is first imported
http://docs.python.org/library/os.html#os.environ) so this patch adds a
variable to the bb namespace (bb.initial_environ) that is an early copy of
the environment.

I put the variable here so that a) it's easily accessible and b) we can take
the copy pretty early on.

Any thoughts on this? Note the RFC prefix. :-)

Thanks,

Joshua

Please review the following changes for suitability for inclusion. If you have
any objections or suggestions for improvement, please respond to the patches. If
you agree with the changes, please provide your Acked-by.

The following changes since commit 5c8eeefc79455f058dda8f04cf4c12dc5418e00f:

  cooker: only return *Found events if something was actually found (2011-07-14 15:12:40 +0100)

are available in the git repository at:
  git://github.com/incandescant/bitbake initialenv
  https://github.com/incandescant/bitbake/tree/initialenv

Joshua Lock (1):
  lib/bb: preserve a copy of the initial environment variables

 lib/bb/__init__.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

-- 
1.7.6




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-21 22:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 22:33 [RFC PATCH 0/1] Save the initial environment Joshua Lock
2011-07-18 22:33 ` [RFC PATCH 1/1] lib/bb: preserve a copy of the initial environment variables Joshua Lock
2011-07-21 21:22 ` [RFC PATCH 0/1] Save the initial environment Richard Purdie
2011-07-21 22:12   ` Joshua Lock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.