Changeset 19025

Show
Ignore:
Timestamp:
17.04.2009 03:08:51 (11 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

Files:
1 modified

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;