mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-21 17:52:14 +01:00
- _load_plugins: add all functions from the plugin to the Osc class
Adding only functions which starts with "do_" breaks the old behavior.
This commit is contained in:
parent
ebacb2109b
commit
a7a60e450b
@ -7928,7 +7928,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
mod.__dict__.update(globals())
|
||||
for name in dir(mod):
|
||||
func = getattr(mod, name)
|
||||
if name.startswith('do_') and inspect.isfunction(func):
|
||||
# add all functions to the class (filtering only
|
||||
# methods which start with "do_" breaks the old behavior)
|
||||
if inspect.isfunction(func):
|
||||
setattr(self.__class__, name, func)
|
||||
except SyntaxError as e:
|
||||
if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')):
|
||||
|
Loading…
x
Reference in New Issue
Block a user