Ignore:
Timestamp:
Sep 4, 2017, 1:21:18 PM (7 years ago)
Author:
Bruno Cornec
Message:

Fix usage of labels in env var (normalize with 'LABEL'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2279 r2287  
    333333
    334334# We do not overwrite shell settings
    335 $ENV{ftp_proxy} ||= $ftp_proxy if ((defined $ftp_proxy) && ($ftp_proxy ne ""));
    336 $ENV{http_proxy} ||= $http_proxy if ((defined $http_proxy) && ($http_proxy ne ""));
    337 $ENV{https_proxy} ||= $https_proxy if ((defined $https_proxy) && ($https_proxy ne ""));
     335$ENV{'ftp_proxy'} ||= $ftp_proxy if ((defined $ftp_proxy) && ($ftp_proxy ne ""));
     336$ENV{'http_proxy'} ||= $http_proxy if ((defined $http_proxy) && ($http_proxy ne ""));
     337$ENV{'https_proxy'} ||= $https_proxy if ((defined $https_proxy) && ($https_proxy ne ""));
    338338}
    339339
     
    358358confess "Missing install command for $pbos->{name}-$pbos->{version}-$pbos->{arch}" unless (defined $pbos->{install} && $pbos->{install} =~ /\w/);
    359359pb_apply_conf_proxy($pbos);
    360 pb_log(1, "ftp_proxy=$ENV{ftp_proxy}\n") if (defined $ENV{ftp_proxy});
    361 pb_log(1, "http_proxy=$ENV{http_proxy}\n")  if (defined $ENV{http_proxy});
    362 pb_log(1, "https_proxy=$ENV{https_proxy}\n")  if (defined $ENV{https_proxy});
     360pb_log(1, "ftp_proxy=$ENV{'ftp_proxy'}\n") if (defined $ENV{'ftp_proxy'});
     361pb_log(1, "http_proxy=$ENV{'http_proxy'}\n")  if (defined $ENV{'http_proxy'});
     362pb_log(1, "https_proxy=$ENV{'https_proxy'}\n")  if (defined $ENV{'https_proxy'});
    363363
    364364# Get dependencies in the build file if not forced
     
    497497my $deps2 = "";
    498498# Avoid to install what is already there
    499 delete $ENV{COLUMNS};
     499delete $ENV{'COLUMNS'};
    500500foreach my $p (split(/\s+/,$deps)) {
    501501    next if $p =~ /^\s*$/o;
Note: See TracChangeset for help on using the changeset viewer.