From 653462c45373f0eb4205f7bd80c1f4a6db996bdb Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 1 Mar 2021 12:37:32 -0500 Subject: pluginmanager fixes --- python/pluginmanager.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python') diff --git a/python/pluginmanager.py b/python/pluginmanager.py index b24ba7b6..1f38a386 100644 --- a/python/pluginmanager.py +++ b/python/pluginmanager.py @@ -59,6 +59,15 @@ class RepoPlugin(object): """Boolean True if the plugin is installed, False otherwise""" return core.BNPluginIsInstalled(self.handle) + def install(self): + """Attempt to install the given plugin""" + self.install_dependencies() + return core.BNPluginInstall(self.handle) + + def uninstall(self): + """Attempt to uninstall the given plugin""" + return core.BNPluginUninstall(self.handle) + @installed.setter def installed(self, state): if state: -- cgit v1.3.1