Skip to content

Commit

Permalink
Set environment from config in utility scripts, so that BF_PROXY sett…
Browse files Browse the repository at this point in the history
…ing is honored. Problem reported by Robert Creager.
  • Loading branch information
adunstan committed Dec 18, 2010
1 parent 352338e commit 4ff3c61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setnotes.pl
Expand Up @@ -77,6 +77,12 @@

my $sig= sha1_hex($content,$secret);

# set environment from config
while (my ($envkey,$envval) = each %{$PGBuild::conf{build_env}})
{
$ENV{$envkey}=$envval;
}

my $ua = new LWP::UserAgent;
$ua->agent("Postgres Build Farm Reporter");
if (my $proxy = $ENV{BF_PROXY})
Expand Down
6 changes: 6 additions & 0 deletions update_personality.pl
Expand Up @@ -82,6 +82,12 @@

my $sig= sha1_hex($content,$secret);

# set environment from config
while (my ($envkey,$envval) = each %{$PGBuild::conf{build_env}})
{
$ENV{$envkey}=$envval;
}

my $ua = new LWP::UserAgent;
$ua->agent("Postgres Build Farm Reporter");
if (my $proxy = $ENV{BF_PROXY})
Expand Down

0 comments on commit 4ff3c61

Please sign in to comment.