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:56:29 +0200
commitc24dc49a72155da2e35203cc3a3d3dba8efde220 (patch)
tree29b7d422317b69aae06bfa5c017e0bfd18a19e93 /src/apk_database.h
parent3448f3148f37bd246643be6669434c6c7f588c90 (diff)
downloadapk-tools-c24dc49a72155da2e35203cc3a3d3dba8efde220.tar.gz
apk-tools-c24dc49a72155da2e35203cc3a3d3dba8efde220.tar.bz2
apk-tools-c24dc49a72155da2e35203cc3a3d3dba8efde220.tar.xz
apk-tools-c24dc49a72155da2e35203cc3a3d3dba8efde220.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 5b495d8..ccc6717 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -141,7 +141,6 @@ struct apk_database {
unsigned long cache_remount_flags;
apk_blob_t *arch;
unsigned int local_repos, available_repos;
- unsigned int repo_update_errors, repo_update_counter;
unsigned int pending_triggers;
unsigned int extract_flags;
unsigned int active_layers;
@@ -162,6 +161,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;