Beispiel #1
0
def uses_devel_repo(front_url, username, projectname):
    client = CoprClient(copr_url=front_url)
    result = client.get_project_details(projectname, username)

    if "auto_createrepo" in result.data["detail"]:
        return not bool(result.data["detail"]["auto_createrepo"])
    return False
Beispiel #2
0
def get_auto_prune_status(front_url, username, projectname):
    client = CoprClient(copr_url=front_url)
    result = client.get_project_details(projectname, username)

    if "auto_prune" in result.data["detail"]:
        return bool(result.data["detail"]["auto_prune"])
    return True
Beispiel #3
0
def get_auto_createrepo_status(front_url, username, projectname):
    client = CoprClient(copr_url=front_url)
    result = client.get_project_details(projectname, username)

    if "auto_createrepo" in result.data["detail"]:
        return bool(result.data["detail"]["auto_createrepo"])
    else:
        return True
Beispiel #4
0
def get_persistent_status(front_url, username, projectname):
    client = CoprClient(copr_url=front_url)
    result = client.get_project_details(projectname, username)

    if "persistent" in result.data["detail"]:
        return bool(result.data["detail"]["persistent"])
    else:
        return True