Changeset 2287 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Sep 4, 2017, 1:21:18 PM (7 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r2270 r2287 578 578 =item B<pb_path_expand> 579 579 580 Expand out a path by environment variables as ($ENV{ XXX}) and ~580 Expand out a path by environment variables as ($ENV{'ENVVAR'}) and ~ 581 581 582 582 =cut … … 587 587 588 588 eval { $path =~ s/(\$ENV.+\})/$1/eeg; }; 589 $path =~ s/^\~/$ENV{ HOME}/;589 $path =~ s/^\~/$ENV{'HOME'}/; 590 590 591 591 return($path); -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r2279 r2287 333 333 334 334 # 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 "")); 338 338 } 339 339 … … 358 358 confess "Missing install command for $pbos->{name}-$pbos->{version}-$pbos->{arch}" unless (defined $pbos->{install} && $pbos->{install} =~ /\w/); 359 359 pb_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});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'}); 363 363 364 364 # Get dependencies in the build file if not forced … … 497 497 my $deps2 = ""; 498 498 # Avoid to install what is already there 499 delete $ENV{ COLUMNS};499 delete $ENV{'COLUMNS'}; 500 500 foreach my $p (split(/\s+/,$deps)) { 501 501 next if $p =~ /^\s*$/o; -
devel/pb-modules/lib/ProjectBuilder/Env.pm
r2284 r2287 274 274 } 275 275 # Expand potential env variable in it 276 $ENV{ PBDEFDIR} = pb_path_expand($ENV{PBDEFDIR});276 $ENV{'PBDEFDIR'} = pb_path_expand($ENV{'PBDEFDIR'}); 277 277 pb_log(1,"PBDEFDIR: $ENV{'PBDEFDIR'}\n"); 278 278 … … 293 293 } 294 294 } 295 $ENV{ PBPROJDIR} = pb_path_expand($ENV{PBPROJDIR});295 $ENV{'PBPROJDIR'} = pb_path_expand($ENV{'PBPROJDIR'}); 296 296 297 297 my $pbconfpath = "$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}"; -
devel/pb-modules/lib/ProjectBuilder/VE.pm
r2234 r2287 110 110 $sudocmd = "setarch i386 $sudocmd" if (($pbos->{'arch'} =~ /i[3456]86/) && ($arch eq 'x86_64')); 111 111 112 my $root = pb_path_expand($vepath->{$ENV{ PBPROJ}});112 my $root = pb_path_expand($vepath->{$ENV{'PBPROJ'}}); 113 113 114 114 if (($vetype eq "chroot") || ($vetype eq "schroot") || ($vetype eq "docker")) { … … 132 132 # Which tool is used 133 133 my $verpmstyle = $verpmtype->{$ENV{'PBPROJ'}}; 134 die "No verpmtype defined for $ENV{ PBPROJ}" unless (defined $verpmstyle);134 die "No verpmtype defined for $ENV{'PBPROJ'}" unless (defined $verpmstyle); 135 135 136 136 # Get potential rbs option … … 306 306 print DOCKER "FROM $pbimage\n"; 307 307 print DOCKER "MAINTAINER project-builder.org aka pb\n"; 308 print DOCKER "ENV ftp_proxy $ENV{ ftp_proxy}\n" if (defined $ENV{ftp_proxy});309 print DOCKER "ENV http_proxy $ENV{ http_proxy}\n" if (defined $ENV{http_proxy});310 print DOCKER "ENV https_proxy $ENV{ https_proxy}\n" if (defined $ENV{https_proxy});308 print DOCKER "ENV ftp_proxy $ENV{'ftp_proxy'}\n" if (defined $ENV{'ftp_proxy'}); 309 print DOCKER "ENV http_proxy $ENV{'http_proxy'}\n" if (defined $ENV{'http_proxy'}); 310 print DOCKER "ENV https_proxy $ENV{'https_proxy'}\n" if (defined $ENV{'https_proxy'}); 311 311 # We are root in that container so no need to sudo, which is present potentially 312 312 my $cmd2 = $pbos->{'install'}; … … 410 410 $vetype = $ptr->{$ENV{'PBPROJ'}}; 411 411 } 412 confess "No vetype defined for $ENV{ PBPROJ}" unless (defined $vetype);413 pb_log(1, "Using vetype $vetype for $ENV{ PBPROJ}\n");412 confess "No vetype defined for $ENV{'PBPROJ'}" unless (defined $vetype); 413 pb_log(1, "Using vetype $vetype for $ENV{'PBPROJ'}\n"); 414 414 return($vetype); 415 415 }
Note:
See TracChangeset
for help on using the changeset viewer.