summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-12-28 13:47:29 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-12-28 14:59:32 +0200
commit22cc01645d93b6cf97e8d154f04c7ce3c5d74597 (patch)
treea3a60ba9cb058f0a5d6f7bd8d80ea461a6f57982 /src/apk_database.h
parent067c17312418937b6fc81cbba78349ce2566f942 (diff)
downloadapk-tools-22cc01645d93b6cf97e8d154f04c7ce3c5d74597.tar.gz
apk-tools-22cc01645d93b6cf97e8d154f04c7ce3c5d74597.tar.bz2
apk-tools-22cc01645d93b6cf97e8d154f04c7ce3c5d74597.tar.xz
apk-tools-22cc01645d93b6cf97e8d154f04c7ce3c5d74597.zip
db: handle repository index update/opening errors more consistently
Track separately autoupdate failure, and opening errors. And print only one error per index at maximum. This makes update with or without --no-cache consistent. Ignore errors from local paths as builders often refer to a local path that is being built, but might be non-existent when building the first package. ref #10726
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 1947df0..aa0145b 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -153,7 +153,6 @@ struct apk_database {
unsigned long cache_remount_flags;
apk_blob_t *arch;
unsigned int local_repos, available_repos, cache_max_age;
- unsigned int repo_update_errors, repo_update_counter;
unsigned int pending_triggers;
unsigned int extract_flags;
int performing_self_upgrade : 1;
@@ -172,6 +171,10 @@ struct apk_database {
struct apk_atom_pool atoms;
struct {
+ unsigned stale, updated, unavailable;
+ } repositories;
+
+ struct {
struct apk_hash names;
struct apk_hash packages;
} available;