Commit 89d1abe4 authored by Timo Teräs's avatar Timo Teräs

db: write errors about repository update (fixes #70)

parent eca9c222
......@@ -1112,12 +1112,17 @@ int apk_repository_update(struct apk_database *db, struct apk_repository *repo)
r = apk_cache_download(db, &repo->csum, repo->url, apkindex_tar_gz,
if (r == 0 || r == -10) {
if (r == -10)
apk_error("Failed to update %s: bad signature!");
apk_cache_delete(db, &repo->csum, apk_index_gz);
return r;
return apk_cache_download(db, &repo->csum, repo->url, apk_index_gz,
r = apk_cache_download(db, &repo->csum, repo->url, apk_index_gz,
if (r != 0)
apk_error("Failed to update %s: download failed");
return r;
struct apkindex_ctx {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment