Skip to content
Snippets Groups Projects
Unverified Commit 39751af7 authored by Oliver Smith's avatar Oliver Smith
Browse files

bpo/jobs/sign_index: don't get real index in test (MR 119)

As I'm bringing up the systemd splitrepo, there is no real APKINDEX yet
that could be downloaded from the server:

  + wget https://build.postmarketos.org/wip/extra-repos/systemd/master/x86_64/APKINDEX-symlink-repo.tar.gz -O APKINDEX.tar.gz
  Connecting to build.postmarketos.org ([2a01:4f9:2a:231::2]:443)
  wget: server returned error: HTTP/1.1 404 Not Found
parent a8ffdd30
No related branches found
No related tags found
No related merge requests found
......@@ -24,19 +24,13 @@ def run(arch, branch, splitrepo):
"APKINDEX-symlink-repo.tar.gz"
)
if bpo.helpers.pmb.should_add_wip_repo(branch):
tasks["download_unsigned_index"] = f"""
wget {shlex.quote(unsigned_apkindex_url)} -O APKINDEX.tar.gz
"""
if bpo.helpers.job.job_service_is_local():
# For the local testsuite, we first download the real current unsigned
# apkindex from the live bpo server to test that this code path works,
# even though the APKINDEX file itself doesn't have the packages we
# have locally. Then remove it and replace it with the local unsigned
# APKINDEX, which does have the right packages.
if not bpo.helpers.job.job_service_is_local():
if bpo.helpers.pmb.should_add_wip_repo(branch):
tasks["download_unsigned_index"] = f"""
wget {shlex.quote(unsigned_apkindex_url)} -O APKINDEX.tar.gz
"""
else:
tasks["local_copy_unsigned_index"] = f"""
rm -f APKINDEX.tar.gz
cp "$BPO_WIP_REPO_PATH"/{arch}/APKINDEX-symlink-repo.tar.gz \
APKINDEX.tar.gz
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment