Commit 41111088 authored by Jan Kiene's avatar Jan Kiene
Browse files

run unzip commands in pages setup script in quiet mode

parent 7f2361d1
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -182,11 +182,10 @@ def curl_for_artifacts(job_id: int, project_id: int, exdir: str):
        "--output",
        ARTIFACTS,
    ]
    print(cmd)
    subprocess.run(cmd, check=True)

    # check for valid archive (if not, it is likely a 404 page, then display that)
    cmd = ["unzip", "-t", ARTIFACTS]
    cmd = ["unzip", "-t", "-qq", ARTIFACTS]
    try:
        subprocess.run(cmd, check=True)
    except subprocess.CalledProcessError:
@@ -195,7 +194,7 @@ def curl_for_artifacts(job_id: int, project_id: int, exdir: str):
        raise subprocess.CalledProcessError(-1, "Unzip check failed")

    # do the actual unzipping
    cmd = ["unzip", ARTIFACTS, "-d", exdir]
    cmd = ["unzip", "-q", ARTIFACTS, "-d", exdir]
    subprocess.run(cmd, check=True)