def get_dependencies(line):
    """
    Returns dependencies (list) of a Depends: line in a control file.
    Those separeted by | are returned as a separate list.

    Parameters
    line : str, current line
    """
    deps = line[9:].split(",")
    alt = []
    ind = []
    for n, d in enumerate(deps):
        # check for alternative dependencies
        if "|" in d:
            alt.extend(d.split("|"))
            ind.append(n)
        else:
            # split at space to remove version numbers
            deps[n] = d.split()[0]
    for n in sorted(ind, reverse=True):
        del deps[n]
    return alt, deps