def validate_reposlug(reposlug):
    """ Validates reposlug. """
    parts = reposlug.split('/')
    if len(parts) != 2:
        raise Exception(f'Reposlug {reposlug} is not correct!')
    return reposlug