Logo Search packages:      
Sourcecode: schroot version File versions  Download package

void sbuild::chroot::setup_env ( environment env  )  [virtual]

Set environment. Set the environment that the setup scripts will see during execution.

Parameters:
env the environment to set.

Reimplemented in sbuild::chroot_block_device, sbuild::chroot_file, sbuild::chroot_lvm_snapshot, sbuild::chroot_plain, and sbuild::chroot_source.

Definition at line 242 of file sbuild-chroot.cc.

References sbuild::environment::add(), get_chroot_type(), get_description(), get_location(), get_mount_device(), get_mount_location(), get_name(), and get_path().

Referenced by sbuild::chroot_plain::setup_env(), sbuild::chroot_file::setup_env(), and sbuild::chroot_block_device::setup_env().

{
  env.add("CHROOT_TYPE", get_chroot_type());
  env.add("CHROOT_NAME", get_name());
  env.add("CHROOT_DESCRIPTION", get_description());
  env.add("CHROOT_LOCATION", get_location());
  env.add("CHROOT_MOUNT_LOCATION", get_mount_location());
  env.add("CHROOT_PATH", get_path());
  env.add("CHROOT_MOUNT_DEVICE", get_mount_device());
}


Generated by  Doxygen 1.6.0   Back to index