Ignore:
Timestamp:
2009-04-17T03:08:51+12:00 (15 years ago)
Author:
davidb
Message:

Newer versions of 'convert' and 'identify' return an exist status of 1 if run with no arguments. This is seens as an error by Greenstone. Changed to run 'identify -version' which still returns an exit value of 0 if successfully run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ImageConverter.pm

    r18555 r19025  
    127127    $no_image_conversion_reason = "win95notsupported";
    128128    } else {
    129     my $result = `identify 2>&1`;
     129    my $result = `identify -version 2>&1`;
    130130    if ($? == -1 || $? == 256) {  # Linux and Windows return different values for "program not found"
    131131        $image_conversion_available = 0;
Note: See TracChangeset for help on using the changeset viewer.