def confirm_mirror(uri):
    """Check if line follows correct sources.list URI"""
    deb = ('deb', 'deb-src')
    proto = ('http://', 'ftp://')
    if (uri and (uri[0] in deb) and
            (proto[0] in uri[1] or
             proto[1] in uri[1])):
        return True

    return False