Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
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
Ejemplo n.º 7
0
"""
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