def main(argv): try: argv = list(argv) debugAll = '--debug-all' in argv if debugAll: debuggerException = Exception argv.remove('--debug-all') else: debuggerException = errors.RmakeInternalError sys.excepthook = errors.genExcepthook(debug=debugAll, debugCtrlC=debugAll) compat.ConaryVersion().checkRequiredVersion() return RmakeMain().main(argv, debuggerException=debuggerException) except debuggerException, err: raise
def main(argv): log.setVerbosity(log.WARNING) try: argv = list(argv) debugAll = "--debug-all" in argv if debugAll: debuggerException = Exception argv.remove("--debug-all") else: debuggerException = errors.RmakeInternalError sys.excepthook = errors.genExcepthook(debug=debugAll, debugCtrlC=debugAll) compat.ConaryVersion().checkRequiredVersion() return RmakeMain().main(argv, debuggerException=debuggerException) except debuggerException, err: raise
def main(argv): log.setVerbosity(log.WARNING) try: argv = list(argv) debugAll = '--debug-all' in argv if debugAll: debuggerException = Exception argv.remove('--debug-all') else: debuggerException = errors.RmakeInternalError sys.excepthook = errors.genExcepthook(debug=debugAll, debugCtrlC=debugAll) compat.ConaryVersion().checkRequiredVersion() return RmakeMain().main(argv, debuggerException=debuggerException) except debuggerException, err: raise
def mainWithExceptionHandling(self, argv): from rmake import errors try: argv = list(argv) debugAll = '--debug-all' in argv or '-d' in argv if debugAll: debuggerException = Exception if '-d' in argv: argv.remove('-d') else: argv.remove('--debug-all') else: debuggerException = errors.RmakeInternalError sys.excepthook = errors.genExcepthook(debug=debugAll, debugCtrlC=debugAll) rc = self.main(argv) except debuggerException, err: raise
import errno import os import sys from conary import conarycfg from conary import errors as conaryerrors from conary.lib import cfg, log from conary.lib import options from rmake import constants from rmake import errors sys.excepthook = errors.genExcepthook(debug=False) from rmake import compat from rmake import plugins from rmake.build import buildcfg from rmake.cmdline import command from rmake.cmdline import helper class RmakeMain(options.MainHandler): name = "rmake" version = constants.version abstractCommand = command.rMakeCommand configClass = buildcfg.BuildConfiguration
""" Simple client that communicates with rMake. """ import errno import sys from conary import conarycfg from conary import errors as conaryerrors from conary.lib import cfg, log from conary.lib import options from rmake import constants from rmake import errors sys.excepthook = errors.genExcepthook(debug=False) from rmake import compat from rmake import plugins from rmake.build import buildcfg from rmake.cmdline import command from rmake.cmdline import helper class RmakeMain(options.MainHandler): name = 'rmake' version = constants.version abstractCommand = command.rMakeCommand configClass = buildcfg.BuildConfiguration