aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-12-04 13:22:38 +0000
committerPascal Terjan <pterjan@mageia.org>2012-12-04 13:22:38 +0000
commit5a3afc8f659a01ac295e24383ec4ac18e7d58cef (patch)
tree04b28b83d2c6ea9e816bcbd3248c022fefaa15b8
parentee9eb63d49eecaef8e50e128f49d6b166da9c5bf (diff)
downloadiurt-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--NEWS3
-rwxr-xr-xiurt12
2 files changed, 15 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 105fe8e..f7a28b7 100644
--- a/NEWS
+++ b/NEWS
@@ -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/
diff --git a/iurt b/iurt
index 28642ba..bedac33 100755
--- a/iurt
+++ b/iurt
@@ -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') {