Ignore:
Timestamp:
Oct 17, 2007, 6:38:20 PM (12 years ago)
Author:
bruno
Message:
  • Improve pbsetupqemu for fc4, sudoers management
  • Adds updateqemu script
  • Adds support for "flat" type of CMS
  • gentoo is nover now
  • halt replaces poweroff
  • try to fix date issue on the VM
  • improve destdir management on spec file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Base.pm

    r212 r226  
    288288    $ENV{'PBCMSLOG'}="svn log";
    289289    $ENV{'PBCMSLOGFILE'}="svn.log";
     290} elsif ($cms->{$proj} eq "flat") {
     291    $ENV{'PBREVISION'}="flat";
     292    $ENV{'PBCMSLOG'}="/bin/true";
     293    $ENV{'PBCMSLOGFILE'}="/dev/null";
    290294} elsif ($cms->{$proj} eq "cvs") {
    291295    # Way too slow
     
    321325    }
    322326    pb_system("svn export $source $tmp","Exporting $source from SVN to $tmp");
     327} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
     328    if (-d $source) {
     329        $tmp = $destdir;
     330    } else {
     331        $tmp = $destdir."/".basename($source);
     332    }
     333    pb_system("cp -a $source $tmp","Exporting $source from DIR to $tmp");
    323334} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    324335    my $dir=dirname($destdir);
     
    346357if ($cms->{$ENV{'PBPROJ'}} eq "svn") {
    347358    pb_system("svn log -v $pkgdir > $destfile","Extracting log info from SVN");
     359} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
     360    # Nothing to do
    348361} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    349362    my $tmp=basename($pkgdir);
     
    367380    close(PIPE);
    368381    chomp($url);
     382} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
    369383} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    370384} else {
     
    381395if ($cms->{$ENV{'PBPROJ'}} eq "svn") {
    382396    pb_system("svn copy -m \"Creation of $newurl from $oldurl\" $oldurl $newurl","Copying $oldurl to $newurl ");
     397} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
    383398} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    384399} else {
     
    394409if ($cms->{$ENV{'PBPROJ'}} eq "svn") {
    395410    pb_system("svn co $url $destination","Checking $url to $destination ");
     411} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
    396412} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    397413} else {
     
    408424    pb_system("svn ci -m \"Updated to $ver\" $dir","Checking in $dir");
    409425    pb_system("svn up $dir","Updating $dir");
     426} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
    410427} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    411428} else {
     
    424441    }
    425442    return($l);
     443} elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") {
    426444} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    427445} else {
Note: See TracChangeset for help on using the changeset viewer.