Changeset 527 in ProjectBuilder


Ignore:
Timestamp:
Aug 8, 2008, 8:57:39 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Fix CVS export functin to also use tags passed in param.
  • Backport build fixes from 0.9.3
Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r517 r527  
    15471547    my ($pbac) = pb_conf_get($vtype."login");
    15481548    my ($key,$zero0,$zero1,$zero2);
    1549     my ($vmexist,$vmpid);
     1549    my ($vmexist,$vmpid,$ntps);
    15501550
    15511551    if ($vtype eq "vm") {
     
    15551555        my ($vmhost,$vmport,$vmntp) = pb_conf_get("vmhost","vmport","vmntp");
    15561556        my $nport = $vmport->{$ENV{'PBPROJ'}};
     1557        $ntps = $vmntp->{$ENV{'PBPROJ'}};
    15571558        $nport = "$pbport" if (defined $pbport);
    15581559   
     
    16201621
    16211622# Sync date
    1622 pb_system("/usr/sbin/ntpdate \$vmntp->{'PBPRROJ'}","Syncing date to \$vmntp{'PBPRROJ'}");
     1623pb_system("/usr/sbin/ntpdate $ntps","Syncing date to $ntps");
    16231624
    16241625EOF
     
    18281829    pb_system("$insfm","$cmtfm");
    18291830    pb_system("$insfb","$cmtfb");
     1831    pb_system("$insms","$cmtms");
    18301832    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");
    18311833} elsif ( $dfam eq "md" ) {
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r500 r527  
    196196        $tmp1 = $uri;
    197197    }
    198     my $optcvs = "";
    199 
    200198    # If we're working on the CVS itself
    201199    my $cvstag = basename($ENV{'PBROOTDIR'});
     
    313311    return;
    314312} 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");
    316328} elsif ($scheme =~ /^file/) {
    317329    pb_cms_export($url,undef,$destination);
Note: See TracChangeset for help on using the changeset viewer.