--- loncom/xml/londefdef.pm 2005/04/29 21:22:33 1.269 +++ loncom/xml/londefdef.pm 2005/05/17 23:11:59 1.270 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.269 2005/04/29 21:22:33 albertel Exp $ +# $Id: londefdef.pm,v 1.270 2005/05/17 23:11:59 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -3854,9 +3854,11 @@ sub get_eps_image { #if replication failed try to find ps file $src=~s/\.eps$/\.ps/; &Apache::lonxml::debug("Now looking for $src"); - #if no ps file try to replicate it - if (not -e $src || - &Apache::lonnet::repcopy($src) ne 'ok') { + #if no ps file try to replicate it. + my $didrepcopy = &Apache::lonnet::repcopy($src); + &Apache::lonxml::debug("repcopy of $src ... $didrepcopy"); + if ( (not -e $src) || + ($didrepcopy ne 'ok')) { &Apache::lonxml::debug("Failed to find or replicate $src"); #if replication failed try to produce eps file dynamically