Exemple #1
0
def ready():
    """Check whether binaries we need can be executed."""
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_OGG, '-h'],
                               'Usage: oggenc',
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               r'flac ([0-9\.]+)',
                               loud=True)
    return ok
Exemple #2
0
def ready():
    """Check whether binaries we need can be executed."""
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_OGG, '-h'],
                               'Usage: oggenc',
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               r'flac ([0-9\.]+)',
                               loud=True)
    return ok
Exemple #3
0
def ready():
    """
    Check whether binaries we need can be executed.
    """
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_LAME, '--version'],
                               "LAME (\d\dbits )?version ([0-9\.]+)",
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               "flac ([0-9\.]+)",
                               loud=True)
    return ok
Exemple #4
0
def ready():
    """
    Check whether binaries we need can be executed.
    """
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_OPUS, '--version'],
                               "opusenc opus-tools",
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               "flac ([0-9\.]+)",
                               loud=True)
    return ok
Exemple #5
0
def ready():
    """
    Check whether binaries we need can be executed.
    """
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_OPUS, '--version'],
                               "opusenc opus-tools",
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               "flac ([0-9\.]+)",
                               loud=True)
    return ok
Exemple #6
0
def ready():
    """
    Check whether binaries we need can be executed.
    """
    ok = True
    ok &= flaclib.check_binary([flaccfg.BIN_LAME, '--version'],
                               "LAME (\d\dbits )?version ([0-9\.]+)",
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               "flac ([0-9\.]+)",
                               loud=True)
    return ok
Exemple #7
0
def ready():
    """
    The ready() method checks that all the binaries this module requires
    can be executed, and returns True if they can.
    """
    ok = True
    ok &= flaclib.check_binary(['faac'], 
                               r'FAAC [0-9\.]+',
                               loud=True)
    ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'],
                               r'flac [0-9\.]+',
                               loud=True)
    return ok