Changeset 2287 in ProjectBuilder for devel/rpmbootstrap
- Timestamp:
- Sep 4, 2017, 1:21:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/rpmbootstrap/bin/rpmbootstrap
r2279 r2287 585 585 # 586 586 $pbos->{'install'} =~ s/sudo//g; 587 if (((defined $ENV{ http_proxy}) && ($ENV{http_proxy} ne '')) || ((defined $ENV{https_proxy}) && ($ENV{https_proxy} ne '')) || ((defined $ENV{ftp_proxy}) && ($ENV{ftp_proxy} ne ''))) {587 if (((defined $ENV{'http_proxy'}) && ($ENV{'http_proxy'} ne '')) || ((defined $ENV{'https_proxy'}) && ($ENV{'https_proxy'} ne '')) || ((defined $ENV{'ftp_proxy'}) && ($ENV{'ftp_proxy'} ne ''))) { 588 588 if ($pbos->{'name'} eq "opensuse") { 589 589 # For opensuse 11.4 or 12.1 -- one of them didn't work with http_proxy or HTTP_PROXY set. 590 590 open(PROXY, "> $vepath/etc/sysconfig/proxy") || die "can't open $vepath/etc/sysconfig/proxy: $!"; 591 print PROXY "HTTP_PROXY=$ENV{ http_proxy}\n" if ((defined $ENV{http_proxy}) && ($ENV{http_proxy} ne ''));592 print PROXY "HTTPS_PROXY=$ENV{ https_proxy}\n" if ((defined $ENV{https_proxy}) && ($ENV{https_proxy} ne ''));593 print PROXY "FTP_PROXY=$ENV{ ftp_proxy}\n" if ((defined $ENV{ftp_proxy}) && ($ENV{ftp_proxy} ne ''));591 print PROXY "HTTP_PROXY=$ENV{'http_proxy'}\n" if ((defined $ENV{'http_proxy'}) && ($ENV{'http_proxy'} ne '')); 592 print PROXY "HTTPS_PROXY=$ENV{'https_proxy'}\n" if ((defined $ENV{'https_proxy'}) && ($ENV{'https_proxy'} ne '')); 593 print PROXY "FTP_PROXY=$ENV{'ftp_proxy'}\n" if ((defined $ENV{'ftp_proxy'}) && ($ENV{'ftp_proxy'} ne '')); 594 594 close(PROXY); 595 595 }
Note:
See TracChangeset
for help on using the changeset viewer.