コード例 #1
0
ファイル: shelltools.py プロジェクト: PisiLinuxNew/pisi
def system(command):
    command = string.join(string.split(command))
    retValue = run_logged(command)

    #if return value is different than 0, it means error, raise exception
    if retValue != 0:
        error(_("Command \"%s\" failed, return value was %d.") % (command, retValue))

    return retValue
コード例 #2
0
ファイル: shelltools.py プロジェクト: pars-linux/uludag
def system(command):
    command = string.join(string.split(command))
    retValue = run_logged(command)

    #if return value is different than 0, it means error, raise exception
    if retValue != 0:
        error(
            _("Command \"%s\" failed, return value was %d.") %
            (command, retValue))

    return retValue
コード例 #3
0
ファイル: shelltools.py プロジェクト: dhirajkhatiwada1/uludag
def system(command):
    command = string.join(string.split(command))
    return run_logged(command)
コード例 #4
0
ファイル: shelltools.py プロジェクト: pars-linux/pisi-devel
def system(command):
    command = string.join(string.split(command))
    return run_logged(command)