mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
plugins now should be placed in /usr/lib/osc to match FHS (the /var path is still supported though)
This commit is contained in:
@@ -3080,7 +3080,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
###############################################################################
|
||||
|
||||
# load subcommands plugged-in locally
|
||||
plugin_dirs = ['/var/lib/osc-plugins', os.path.expanduser('~/.osc-plugins')]
|
||||
plugin_dirs = [
|
||||
'/usr/lib/osc-plugins',
|
||||
'/usr/local/lib/osc-plugins',
|
||||
'/var/lib/osc-plugins', # Kept for backward compatibility
|
||||
os.path.expanduser('~/.osc-plugins')]
|
||||
for plugin_dir in plugin_dirs:
|
||||
if os.path.isdir(plugin_dir):
|
||||
for extfile in os.listdir(plugin_dir):
|
||||
|
Reference in New Issue
Block a user