Changeset 1153 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Jan 12, 2011, 2:42:12 AM (14 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf.pod
r1133 r1153 491 491 Example: vertype default = chroot 492 492 493 =item B<vmbuildtm> 494 495 Nature: Optional 496 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). Default value is set to vmtmout 497 Value: Time in seconds to wait before killing the VM if SSH port already used. This should corresponds to the time to send files, build the project and get packages in the VM. 498 Conffile: project 499 Example: vmbuildtm default = 600,vmbuildtm mandriva-2009.0-x86_64 = 1200 500 493 501 =item B<vmcmd> 494 502 … … 524 532 Example: vmlogin default = pb 525 533 534 =item B<vmmem> 535 536 Nature: Optional 537 Key: project (as defined in the -p option or PBPROJ environment variable) 538 Value: Memory size in MB to allocate to the VM. 539 Conffile: vm 540 Example: vmmem default = 512 541 526 542 =item B<vmmonport> 527 543 … … 592 608 Nature: Optional 593 609 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). NB: a default value is highly interesting here. 594 Value: Time in seconds to wa y beofre interacting with the VM. This should correspondsto the time the VM takes to boot.610 Value: Time in seconds to wait before interacting with the VM. This should correspond to the time the VM takes to boot. 595 611 Conffile: vm 596 612 Example: vmtmout default = 180,vmtmout mandriva-2009.0-x86_64 = 500 -
devel/pb-modules/lib/ProjectBuilder/Log.pm
r1148 r1153 227 227 # mails the summary to $to 228 228 sub mailSummary { 229 require Mail::Sendmail; 230 my $self = shift; 231 my $to = shift || ""; 232 233 if ($to eq "") { 234 pb_log(0,"Please give a To: address\n"); 235 return; 236 } 237 my %mail = ( 238 To => $to, 239 From => "pb\@localhost", 240 Message => $self->summary() 241 ); 242 if (! sendmail(%mail)) { 243 if (defined $Mail::Sendmail::error) { 244 return $Mail::Sendmail::error; 245 } else { 246 return "Unkown error"; 247 } 248 } 249 pb_log(0,"Mail send to ". $to ."\n"); 229 eval 230 { 231 require Mail::Sendmail; 232 Mail::Sendmail->import(); 233 }; 234 if ($@) { 235 # Mail::Sendmail not found not sending mail ! 236 pb_log(0,"No Mail::Sendmail module found so not sending any mail !\n"); 237 } else { 238 my $self = shift; 239 my $to = shift || ""; 240 241 if ($to eq "") { 242 pb_log(0,"Please give a To: address\n"); 243 return; 244 } 245 my %mail = ( 246 To => $to, 247 From => "pb\@localhost", 248 Message => $self->summary() 249 ); 250 if (! sendmail(%mail)) { 251 if (defined $Mail::Sendmail::error) { 252 return $Mail::Sendmail::error; 253 } else { 254 return "Unkown error"; 255 } 256 } 257 pb_log(0,"Mail send to ". $to ."\n"); 258 } 250 259 } 251 260 -
devel/pb-modules/t/Base.t
r1147 r1153 19 19 if ($@) { 20 20 require Test; 21 Test->import(); 21 22 plan(tests => 1); 22 23 print "# Faking tests as Test::More is not available in an appropriate version\n"; -
devel/pb-modules/t/Log.t
r1147 r1153 19 19 if ($@) { 20 20 require Test; 21 Test->import(); 21 22 plan(tests => 1); 22 23 print "# Faking tests as test::More is not available in an appropriate version\n";
Note:
See TracChangeset
for help on using the changeset viewer.