aboutsummaryrefslogtreecommitdiffstats
path: root/repsys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-09 14:16:44 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-09 14:16:44 +0000
commit3c5a6e1ad7134dda041bec51a9fb50f3d51976b9 (patch)
tree133f122dbc9f6b9944a378b0e33118ac39ff041d /repsys
parenteecca989feb2fd9ca8edff1a26c2f8ac6e7c54f4 (diff)
downloadmgarepo-3c5a6e1ad7134dda041bec51a9fb50f3d51976b9.tar
mgarepo-3c5a6e1ad7134dda041bec51a9fb50f3d51976b9.tar.gz
mgarepo-3c5a6e1ad7134dda041bec51a9fb50f3d51976b9.tar.bz2
mgarepo-3c5a6e1ad7134dda041bec51a9fb50f3d51976b9.tar.xz
mgarepo-3c5a6e1ad7134dda041bec51a9fb50f3d51976b9.zip
Reverted previous change in r219469 (r25). Plugins were not being
initialized before command line parsing.
Diffstat (limited to 'repsys')
-rwxr-xr-xrepsys6
1 files changed, 5 insertions, 1 deletions
diff --git a/repsys b/repsys
index c5f4b09..8180bfe 100755
--- a/repsys
+++ b/repsys
@@ -69,10 +69,14 @@ def dispatch_command(command, argv, debug=0):
traceback.print_exc()
sys.exit(1)
raise Error, "invalid command '%s'" % command
- plugins.load()
command_module.main()
if __name__ == "__main__":
+ try:
+ plugins.load()
+ except Error, e:
+ sys.stderr.write("plugin initialization error: %s\n" % e)
+ sys.exit(1)
do_command(parse_options, dispatch_command)
# vim:et:ts=4:sw=4