1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +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:
Michal Cihar
2009-05-05 14:21:56 +00:00
parent a02e40f273
commit 85293d8770
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@@ -9,6 +9,7 @@
- bugfix: templates in edit commit message causes an empty commit logs
- osc sr create consumes DESTPRJ [DESTPKG] arguments only
- osc build now also tested on native arm targets where uname -m reports a string like armv{4l,5el,6l,7el,7l}
- plugins now should be placed in /usr/lib/osc to match FHS (the /var path is still supported though)
0.117:
- support checkout of single package via "osc co PACKAGE" when local dir is project

View File

@@ -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):