[Piuparts-devel] Bug#766921: (no subject)

Andreas Beckmann anbe at debian.org
Thu Nov 13 12:00:59 UTC 2014


On 2014-11-13 12:41, Holger Levsen wrote:
> <mapreri> | h01ger: well, is there a pythonic way to preload library? :)

we don't need it in python, we need it for the chroot ... just adding
something to the environment for the run() should do

def run(..., extra_env=[])
  ...
  if extra_env:
    env.extend(extra_env)

Chroot.run():

  eenv=None
  if eatmydata:
    eenv=...
  run(..., eenv=eenv)


Andreas



More information about the Piuparts-devel mailing list