def METHOD_NAME(fullname, virt=None):
    """
    Split a full installer name into mode and short name
    Examples:
       git_repo_foo -> (git_repo, foo)
       local_src_foo -> (local_src, foo)
    """
    for mode in INSTALLER_REGISTRY.get_modes(virt):
        if fullname.startswith('%s_' % mode):
            _, _name = fullname.split(mode)
            name = _name[1:]
            return (mode, name)
    return (None, None)