Ignore:
Timestamp:
2018-10-10T21:25:13+13:00 (6 years ago)
Author:
ak19
Message:

Running plugoutinfo.pl with describeall or listall flag would break on FedoraMETSPlugout when either FEDORA_HOME or FEDORA_VERSION aren't set (as is often the case), as there's a die statement in the BEGIN of FedoraMETSPlugout. Needed to run die if either FEDORA env var is not set only if the plugout is NOT in info_only mode in plugout constructor. However, info_only mode was never set in any of the plugouts, so had to add set up the infrastructure for it in plugoutinfo.pl and plugout.pm. Then added the info_only test to all teh plugouts, even though it's redundant in most of them for making sure future changes to any plugout's constructors does not break plugoutinfo.pl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/plugoutinfo.pl

    r17201 r32511  
    177177        my $plugout;
    178178        push @$plugout,$plugout_name;
    179         my $plugoutobj = &plugout::load_plugout ($plugout);
     179        my $plugoutobj = &plugout::load_plugout ($plugout, "info_only");
    180180        if ($describeall) {
    181181        $plugoutobj->print_xml_usage(0);
     
    202202    push @$plugout,$plugout_name;
    203203
    204     my $plugoutobj = &plugout::load_plugout($plugout);
     204    my $plugoutobj = &plugout::load_plugout($plugout, "info_only");
    205205
    206206    if ($xml) {
Note: See TracChangeset for help on using the changeset viewer.