Changeset 1109 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Log.pm


Ignore:
Timestamp:
Nov 17, 2010, 12:40:28 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4041@localhost: bruno | 2010-11-17 11:40:41 +0100

  • Adds new configuration parameters (oschkcmd, oschkopt) to externalize package checking command
  • Adds new configuration parameters (pbinstalltype, pbpkg) to start allowing installation of pb in VM/VE with packages or files (this last is only needed by upstream)
  • Remove dependency on Mail::Sendmail to where it's really needed (part of Log, not used yet, and annouce). In particular this removes one non std dep for VE/VM build.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Log.pm

    r1090 r1109  
    55
    66use strict;
    7 use Mail::Sendmail;
    87use ProjectBuilder::Base;
    98use ProjectBuilder::Log::Item;
     
    227226# mails the summary to $to
    228227sub mailSummary {
     228    require Mail::Sendmail;
    229229    my $self = shift;
    230230    my $to = shift || "";
     
    239239        Message => $self->summary()
    240240    );
    241     sendmail(%mail) or return $Mail::Sendmail::error;
     241    if (! sendmail(%mail)) {
     242        if (defined $Mail::Sendmail::error) {
     243            return $Mail::Sendmail::error;
     244        } else {
     245            return "Unkown error";
     246        }
     247    }
    242248    pb_log(0,"Mail send to ". $to ."\n");
    243249}
Note: See TracChangeset for help on using the changeset viewer.