[Koha-bugs] [Bug 34978] Add --include and --exclude options to install_plugins.pl to choose the plugins to install

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 22 14:36:24 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34978

Pedro Amorim <pedro.amorim at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #160210|0                           |1
        is obsolete|                            |

--- Comment #5 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 160239
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160239&action=edit
Bug 34978: Add --include and --exclude options to install_plugins.pl

I have added the options --include and --exclude to the install_plugins.pl
script. When running the script, you can now specify which plugins you want to
install (--include) and which ones you do not want to install (--exclude).

--include installs only the plugins from the specified classes.
--exclude installs all plugins except those from the specified classes.
It's possible to specify the package to install a specific plugin.
--include and --exclude cannot be used simultaneously.

Usage example:
./misc/devel/install_plugins --include <package::pluginClass> --include
<anotherPluginClass>"

TEST PLAN
1) Apply the patch
2) Add at least three plugins to the plugin directory
([Koha]/plugins/Koha/Plugin/)
3) Empty the "plugin_data" and "plugin_methods" tables (SQL command: "delete
from plugin_data; delete from plugin_methods;")
4) In a terminal, execute this command "./misc/devel/install_plugins.pl
--include <package::pluginClass> --include <anotherPluginClass>" (Replace
<package::pluginClass> and <anotherPluginClass> with the class and package of
your plugins)
5) In your Koha intranet, go to "Koha administration > Manage plugins"
6) Verify that only the specified plugins are installed
7) Repeat step 3
8) In a terminal, execute this command from your Koha
project"./misc/devel/install_plugins.pl --exclude <package::pluginClass>
--exclude <anotherPluginClass>"
9) Verify that all plugins except the specified ones are installed
10) Run the tests from the Plugins.t file
([Koha]/t/db_dependent/Koha/Plugins/Plugins.t)
11) Ensure that all tests are successful

Signed-off-by: Pedro Amorim <pedro.amorim at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list