Changeset 1530 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VE.pm


Ignore:
Timestamp:
May 12, 2012, 3:36:08 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • ossueminorrel option now initialized first, and correectly. Removes warnings.
  • other smaller fixes for CMD usage
File:
1 edited

Legend:

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

    r1528 r1530  
    100100        foreach my $proxy (qw/http_proxy ftp_proxy/) {
    101101            if (defined $ENV{$proxy}) {
    102                 open(<CMD>,"sudo sh -c 'echo \$$proxy' |") or die "can't run sudo sh?: $!";
     102                open(CMD,"sudo sh -c 'echo \$$proxy' |") or die "can't run sudo sh?: $!";
    103103                $_ = <CMD>;
    104104                chomp();
    105105                die "sudo not passing through env var $proxy; '$ENV{$proxy}' != '$_'\nAdd line Defaults:`whoami` env_keep += \"$proxy\" to sudoers file?" unless $_ eq $ENV{$proxy};
     106                close(CMD);
    106107            }
    107108        }
     109    }
    108110    # Handle cross arch on Intel based platforms
    109111    $sudocmd = "setarch i386 $sudocmd" if (($pbos->{arch} =~ /i?86/) && ($arch eq 'x86_64'));
Note: See TracChangeset for help on using the changeset viewer.