diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-12-04 13:22:38 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-12-04 13:22:38 +0000 |
commit | 5a3afc8f659a01ac295e24383ec4ac18e7d58cef (patch) | |
tree | 04b28b83d2c6ea9e816bcbd3248c022fefaa15b8 | |
parent | ee9eb63d49eecaef8e50e128f49d6b166da9c5bf (diff) | |
download | iurt-5a3afc8f659a01ac295e24383ec4ac18e7d58cef.tar iurt-5a3afc8f659a01ac295e24383ec4ac18e7d58cef.tar.gz iurt-5a3afc8f659a01ac295e24383ec4ac18e7d58cef.tar.bz2 iurt-5a3afc8f659a01ac295e24383ec4ac18e7d58cef.tar.xz iurt-5a3afc8f659a01ac295e24383ec4ac18e7d58cef.zip |
Allow setting some env variables to define and default to setting PERL_EXTUTILS_AUTOINSTALL and PERL_AUTOINSTALL to --skipdeps
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | iurt | 12 |
2 files changed, 15 insertions, 0 deletions
@@ -1,6 +1,9 @@ - kill build if nothing is printed for 5 minutes and system is idle - write status file even if the build is successful +- allow setting some env variables to define and default to + setting PERL_EXTUTILS_AUTOINSTALL and PERL_AUTOINSTALL to + --skipdeps 0.6.13 - use rpmbuild/ rather than rpm/ @@ -479,6 +479,10 @@ my %config_usage = ( desc => 'Domain to append to usernames when sending emails', default => 'mageia.org' }, + env => { + desc => 'Environment variables to export', + default => { PERL_EXTUTILS_AUTOINSTALL => "--skipdeps", PERL_AUTOINSTALL => "--skipdeps" } + }, home => { desc => 'Home dir', default => $HOME @@ -565,6 +569,14 @@ if (!$arch_comp{$real_arch}{$run{my_arch}}) { } config_init(\%config_usage, $config, \%run); +if ($config->{env}) { + foreach my $var (keys %{$config->{env}}) { + print "$var\n"; + print $config->{env}->{$var}."\n"; + $ENV{$var} = $config->{env}->{$var}; + } +} + $config->{upload} .= $run{distro}; $config->{upload} =~ s/community//g; if ($run{distro} ne 'cooker') { |