Changeset 1586


Ignore:
Timestamp:
05/24/12 00:13:00 (12 months ago)
Author:
bruno
Message:
  • Adds support for the PBVCSOPT env var to pass cli options to the VCS command. Example is authentication method for SVN as in pbtest.
File:
1 edited

Legend:

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

    r1576 r1586  
    530530 
    531531if (defined $ENV{'PBVCSOPT'}) { 
    532     $cmdopt .= $ENV{'PBVCSOPT'}; 
     532    $cmdopt .= " $ENV{'PBVCSOPT'}"; 
    533533} 
    534534 
    535535if ($scheme =~ /hg/) { 
    536     return($cmd."hg ".$cmdopt) 
     536    return($cmd."hg".$cmdopt) 
    537537} elsif ($scheme =~ /git/) { 
    538     return($cmd."git ".$cmdopt) 
     538    return($cmd."git".$cmdopt) 
    539539} elsif ($scheme =~ /svn/) { 
    540     return($cmd."svn ".$cmdopt) 
     540    return($cmd."svn".$cmdopt) 
    541541} elsif ($scheme =~ /svk/) { 
    542     return($cmd."svk ".$cmdopt) 
     542    return($cmd."svk".$cmdopt) 
    543543} elsif ($scheme =~ /cvs/) { 
    544     return($cmd."cvs ".$cmdopt) 
     544    return($cmd."cvs".$cmdopt) 
    545545} elsif (($scheme =~ /http/) || ($scheme =~ /ftp/)) { 
    546546    my $command = pb_check_req("wget",1); 
Note: See TracChangeset for help on using the changeset viewer.