Changeset 1953 in ProjectBuilder


Ignore:
Timestamp:
Mar 5, 2015, 3:08:50 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix typos in conf file doc
  • Fix VM package build by using again the correct script to setup repo and initializing it correctly later in pb
  • Fix an error where vetype was used without check that a VE was in operation
Location:
devel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r1952 r1953  
    33# Main configuration file for project-builder.org
    44#
    5 # (c) B. Cornec 2007-2012
     5# (c) B. Cornec 2007-2015
    66# Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard
    77# Provided under the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) Creative Common License
  • devel/pb-modules/etc/pb.conf.pod

    r1903 r1953  
    189189 Value: In case the B<logcmd> command is not internal, the options of the B<logcmd> application to launch to log context
    190190 Conffile: pb
    191  Example: logcmd mageia = --all
     191 Example: logopt mageia = --all
    192192
    193193=item B<mkbmbootcmds>
     
    613613 Nature: Optional
    614614 Key: project (as defined in the -p option or PBPROJ environment variable)
    615  Value: B<pb URL> giving access to where the project is stored. Normaly provided by the project, but could be overloaded for specific authentication information in the home configuration file or when using a DVCS
     615 Value: B<pburl> giving access to where the project is stored. Normaly provided by the project, but could be overloaded for specific authentication information in the home configuration file or when using a DVCS
    616616 Conffile: home|project
    617617 Example: pburl linuxcoe = cvs+ssh://:ext:user@linuxcoe.cvs.sourceforge.net:/cvsroot/linuxcoe, pburl pb = svk:////local/pb
     
    10271027 Value: qemu|kvm. For the moment, only QEMU or KVM are supported as virtualization technologies.
    10281028 Conffile: vm
    1029  Example: vmrtype default = kvm
     1029 Example: vmtype default = kvm
    10301030
    10311031=item B<webdir>
     
    10851085=head1 COPYRIGHT
    10861086
    1087 (c) B. Cornec 2007-2012
    1088 Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard
    1089 Provided under the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) Creative Common License
     1087 (c) B. Cornec 2007-2015
     1088 Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard
     1089 Provided under the Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) Creative Common License
    10901090
    10911091=cut
  • devel/pb/bin/pb

    r1952 r1953  
    20992099        chomp($src);
    21002100        close(KEEP);
    2101         $src = "$src $pbscript{$v}";
    21022101    }
    21032102    if (($cmt eq "Sources") || ($cmt eq "Packages") || ($cmt eq "CPAN")) {
     
    21172116    }
    21182117
    2119     pb_log(0,"Sources handled ($cmt): $src\n");
    21202118    pb_log(2,"values: ".Dumper(($host,$login,$dir,$port,$tmout,$path,$conf))."\n");
    21212119    my ($sshhost,$sshdir) = pb_conf_get($host,$dir);
     
    21882186        my ($pbrepo) = pb_conf_get("pbrepo");
    21892187
    2190         # Repository management
     2188        # Script for Repository management
    21912189        $pbscript{$v} = "$ENV{'PBBUILDDIR'}/pbscript.$$";
     2190       
     2191        # That script should be part of the delivery
     2192        $src = "$src $pbscript{$v}";
    21922193        open(PBS,"> $pbscript{$v}") || die "Unable to create $pbscript{$v}";
    21932194        if ($pbos->{'type'} eq "rpm") {
     
    23912392        }
    23922393        close(PBS);
    2393         chmod 0755,"$ENV{'PBBUILDDIR'}/pbscript.$$";
     2394        chmod 0755,$pbscript{$v};
    23942395    } else {
    23952396        return;
     
    25972598    }
    25982599           
     2600    pb_log(0,"Sources handled ($cmt): $src\n");
    25992601    # For docker everything is done in the Dockerfile
    26002602    if (($cmt =~ /^VE/) && ($vetype eq "docker") && ($pbstep < 3)) {
     
    26252627    my $pbscript1;
    26262628    if (($cmt =~ /^(V[EM]|RM)/) || ($cmt =~ /Packages/)){
    2627         $pbscript1 = "$pbscript{$v}";
     2629        $pbscript1 = $pbscript{$v};
    26282630    } else {
    26292631        $pbscript1 = "pbscript";
     
    26452647        } elsif (($cmt =~ /^VE/) && ($vetype eq "docker") && ($pbstep >= 3)) {
    26462648            $dkcmd = "/bin/bash $homedir/$tdir-2/".basename($pbscript1);
    2647             #$dkcmd .= "/bin/bash $homedir/$tdir-2/".basename($pbscript1)." ;  if [ '$pbkeep' == '0' ]; then rm -f $pbscript1; fi ; ";
    26482649        } else {
    26492650            my $s = basename($pbscript1);
     
    27252726            print KEEP "$made\n";
    27262727            close(KEEP);
    2727             if (($vetype eq "docker") && ($pbstep >= 3)) {
     2728            if (($cmt =~ /^VE/) && ($vetype eq "docker") && ($pbstep >= 3)) {
    27282729                pb_rm_rf("$cp2target");
    27292730                pb_system("$cmd1 rm $pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}-$cmt","","quiet");
Note: See TracChangeset for help on using the changeset viewer.