Changeset 1539 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VCS.pm


Ignore:
Timestamp:
May 13, 2012, 12:21:51 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • checking packages is allowed to fail
  • Fix syntax error introduced by a previous patch
  • When using git and pb_vcs_up, for git we need to loop on all the dirs passed (change of interface after Eric's patch)
File:
1 edited

Legend:

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

    r1536 r1539  
    400400my $vcscmd = pb_vcs_cmd($scheme);
    401401
    402 if (($scheme =~ /^((svn)|(cvs)|(svk))/o) {
     402if ($scheme =~ /^((svn)|(cvs)|(svk))/o) {
    403403    pb_system("$vcscmd up ".join(' ',@dir),"Updating ".join(' ',@dir));
    404404} elsif ($scheme =~ /^((hg)|(git))/o) {
    405     pb_system("(cd $dir && $vcscmd pull)", "Updating $dir ");
     405    foreach my $d (@dir) {
     406        pb_system("(cd $d && $vcscmd pull)", "Updating $d ");
     407    }
    406408} elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))   {
    407409} else {
     
    425427my $vcscmd = pb_vcs_cmd($scheme);
    426428
    427 if (($scheme =~ /^((svn)|(cvs)|(svk))/o) {
     429if ($scheme =~ /^((svn)|(cvs)|(svk))/o) {
    428430    pb_system("cd $dir && $vcscmd ci -m \"$msg\" .","Checking in $dir ");
    429431} elsif ($scheme =~ /^git/) {
     
    472474my $l = undef;
    473475
    474 if (($scheme =~ /^((svn)|(cvs)|(svk))/o) {
     476if ($scheme =~ /^((svn)|(cvs)|(svk))/o) {
    475477    open(PIPE,"$vcscmd diff $dir |") || die "Unable to get $vcscmd diff from $dir";
    476478    $l = 0;
Note: See TracChangeset for help on using the changeset viewer.