summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-01-31 14:44:26 +0200
committerTimo Teräs <timo.teras@iki.fi>2023-04-10 22:06:24 +0300
commitc1db6b2238c728aee982fd65ef7037d6489c3084 (patch)
tree70b90cabaa54cb9d88fdde4531e8d32cb974f3c7 /src/apk_database.h
parentd351992ad529dccb95fc1c8997cd328e9c694a92 (diff)
downloadapk-tools-c1db6b2238c728aee982fd65ef7037d6489c3084.tar.gz
apk-tools-c1db6b2238c728aee982fd65ef7037d6489c3084.tar.bz2
apk-tools-c1db6b2238c728aee982fd65ef7037d6489c3084.tar.xz
apk-tools-c1db6b2238c728aee982fd65ef7037d6489c3084.zip
cache: fix 'clean' to prune static cache always
Fix cache applet to prune the static cache which is used for index files if explicit caching is not enabled. fixes #10754
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index aa0145b..a0a62ca 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -259,10 +259,10 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo,
struct apk_package *pkg, int verify, int autoupdate,
apk_progress_cb cb, void *cb_ctx);
-typedef void (*apk_cache_item_cb)(struct apk_database *db,
+typedef void (*apk_cache_item_cb)(struct apk_database *db, int static_cache,
int dirfd, const char *name,
struct apk_package *pkg);
-int apk_db_cache_foreach_item(struct apk_database *db, apk_cache_item_cb cb);
+int apk_db_cache_foreach_item(struct apk_database *db, apk_cache_item_cb cb, int static_cache);
int apk_db_install_pkg(struct apk_database *db,
struct apk_package *oldpkg,