Changeset 527 in ProjectBuilder
- Timestamp:
- Aug 8, 2008, 8:57:39 PM (17 years ago)
- Location:
- devel/pb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r517 r527 1547 1547 my ($pbac) = pb_conf_get($vtype."login"); 1548 1548 my ($key,$zero0,$zero1,$zero2); 1549 my ($vmexist,$vmpid );1549 my ($vmexist,$vmpid,$ntps); 1550 1550 1551 1551 if ($vtype eq "vm") { … … 1555 1555 my ($vmhost,$vmport,$vmntp) = pb_conf_get("vmhost","vmport","vmntp"); 1556 1556 my $nport = $vmport->{$ENV{'PBPROJ'}}; 1557 $ntps = $vmntp->{$ENV{'PBPROJ'}}; 1557 1558 $nport = "$pbport" if (defined $pbport); 1558 1559 … … 1620 1621 1621 1622 # Sync date 1622 pb_system("/usr/sbin/ntpdate \$vmntp->{'PBPRROJ'}","Syncing date to \$vmntp{'PBPRROJ'}");1623 pb_system("/usr/sbin/ntpdate $ntps","Syncing date to $ntps"); 1623 1624 1624 1625 EOF … … 1828 1829 pb_system("$insfm","$cmtfm"); 1829 1830 pb_system("$insfb","$cmtfb"); 1831 pb_system("$insms","$cmtms"); 1830 1832 pb_system("export TERM=linux ; liste=\"\" ; for i in make wget patch sudo perl-DateManip perl-File-HomeDir perl-Mail-Sendmail perl-Locale-gettext xntp; do rpm -q \$i 1> /dev/null 2> /dev/null ; if [ \$\? != 0 ]; then liste=\"\$liste \$i\"; fi; done; echo \"Liste: \$liste\" ; if [ \"\$liste\" != \"\" ]; then yast2 -i \$liste ; fi","$cmtall"); 1831 1833 } elsif ( $dfam eq "md" ) { -
devel/pb/lib/ProjectBuilder/CMS.pm
r500 r527 196 196 $tmp1 = $uri; 197 197 } 198 my $optcvs = "";199 200 198 # If we're working on the CVS itself 201 199 my $cvstag = basename($ENV{'PBROOTDIR'}); … … 313 311 return; 314 312 } elsif ($scheme =~ /^cvs/) { 315 pb_system("cvs co $url $destination","Checking out $url to $destination "); 313 my ($scheme, $account, $host, $port, $path) = pb_get_uri($url); 314 315 # If we're working on the CVS itself 316 my $cvstag = basename($ENV{'PBROOTDIR'}); 317 my $cvsopt = ""; 318 if ($cvstag eq "cvs") { 319 my @date = pb_get_date(); 320 my $pbdate = strftime("%Y-%m-%d %H:%M:%S", @date); 321 $cvsopt = "-D \"$pbdate\""; 322 } else { 323 # we're working on a tag which should be the last part of PBROOTDIR 324 $cvsopt = "-r $cvstag"; 325 } 326 pb_mkdir_p("$destination"); 327 pb_system("cd $destination ; cvs -d $account\@$host:$path co $cvsopt .","Checking out $url to $destination"); 316 328 } elsif ($scheme =~ /^file/) { 317 329 pb_cms_export($url,undef,$destination);
Note:
See TracChangeset
for help on using the changeset viewer.