Changeset 2202 in ProjectBuilder
- Timestamp:
- Mar 10, 2017, 4:23:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/VCS.pm
r2169 r2202 8 8 # $Id$ 9 9 # 10 # Copyright B. Cornec 2007- 201610 # Copyright B. Cornec 2007-today 11 11 # Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard 12 12 # Provided under the GPL v2 … … 117 117 } elsif ($scheme eq "dir") { 118 118 pb_system("cp -r $path $destdir","Copying $uri from DIR to $destdir "); 119 } elsif (($scheme =~ /http/) || ($scheme eq "ftp")) {120 my $f = basename($path);121 unlink "$ENV{'PBTMP'}/$f";122 pb_system("$vcscmd $ENV{'PBTMP'}/$f $uri","Downloading $uri with $vcscmd to $ENV{'PBTMP'}/$f\n");123 # We want to preserve the original tar file124 pb_vcs_export("file://$ENV{'PBTMP'}/$f",$source,$destdir);125 return("$ENV{'PBTMP'}/$f");126 119 } elsif ($scheme =~ /^file/) { 127 120 eval … … 242 235 } 243 236 pb_system("cd $dir ; $vcscmd -d $account\@$host:$path export $cvsopt -d $base $tmp1","Exporting $tmp1 from $source under CVS to $destdir "); 237 } elsif (($scheme =~ /http/) || ($scheme eq "ftp")) { 238 my $f = basename($path); 239 unlink "$ENV{'PBTMP'}/$f"; 240 pb_system("$vcscmd $ENV{'PBTMP'}/$f $uri","Downloading $uri with $vcscmd to $ENV{'PBTMP'}/$f\n"); 241 # We want to preserve the original tar file 242 pb_vcs_export("file://$ENV{'PBTMP'}/$f",$source,$destdir); 243 return("$ENV{'PBTMP'}/$f"); 244 244 } else { 245 245 confess "cms $scheme unknown";
Note:
See TracChangeset
for help on using the changeset viewer.