File scilab-0001-Use-pkcon-to-install-doc-package.patch of Package scilab

Index: scilab-6.0.0/modules/helptools/macros/help.sci
===================================================================
--- scilab-6.0.0.orig/modules/helptools/macros/help.sci
+++ scilab-6.0.0/modules/helptools/macros/help.sci
@@ -56,7 +56,8 @@ function help(varargin)
             error(msprintf(gettext("%s: The help browser is disabled in %s mode.\n"), "help", getscilabmode()));
         end
     else
-        error(msprintf(gettext("%s: help file(.jar) is not installed.\n"), "help"));
+        warning(msprintf(gettext("%s: help file(.jar) is not installed.\n"), "help"));
+        unix_w("pkcon install scilab-doc");
     end
 
 endfunction
openSUSE Build Service is sponsored by