diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-09 14:16:44 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-09 14:16:44 +0000 |
commit | 3c5a6e1ad7134dda041bec51a9fb50f3d51976b9 (patch) | |
tree | 133f122dbc9f6b9944a378b0e33118ac39ff041d /repsys | |
parent | eecca989feb2fd9ca8edff1a26c2f8ac6e7c54f4 (diff) | |
download | mgarepo-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-x | repsys | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |