Changeset 1153 in ProjectBuilder for devel/pb/lib/ProjectBuilder/CMS.pm


Ignore:
Timestamp:
Jan 12, 2011, 2:42:12 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Avoid File::MimeInfo hard requirement. Only abort if not found when needed.
  • Improve report when a perl module is missing
  • Kill an existing crashed VM using an SSH port needed for another VM (should avoid crashed VM to stay when building for all VMs)
  • Use a new parameter vmbuildtm as a timeout before killing the VM (shoudl correspond to build + transfer time)
  • use twice the number of VMs for ports in the range for SSH communication to allow for VMs to finish in an unordered way.
  • Fix a bug in test modules when using Test simple only
  • Mail::Sendmail is now optional for Log module as well, even if not used yet
  • Update pb.conf doc with info for vmbuildtm and vmmem
  • Ready for 0.10.1
File:
1 edited

Legend:

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

    r1148 r1153  
    209209    return("$ENV{'PBTMP'}/$f");
    210210} elsif ($scheme eq "file") {
    211     use File::MimeInfo;
     211    eval
     212    {
     213        require File::MimeInfo;
     214        File::MimeInfo->import();
     215    };
     216    if ($@) {
     217        # File::MimeInfo not found
     218        die("ERROR: Install File::MimeInfo to handle scheme $scheme\n");
     219    }
     220
    212221    my $mm = mimetype($path);
    213222    pb_log(2,"mimetype: $mm\n");
Note: See TracChangeset for help on using the changeset viewer.