summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2022-02-03 22:19:16 +0000
committerAriadne Conill <ariadne@dereferenced.org>2022-02-03 22:26:57 +0000
commit6315575af1cfd9d8d195c6a7173b6a73ccf28f14 (patch)
tree8a7c7f4afe9f32b33940781b4e08c24b73647d76 /src
parent6df225eac38c07ca7fd7de8e59781508bc8ac12b (diff)
downloadapk-tools-6315575af1cfd9d8d195c6a7173b6a73ccf28f14.tar.gz
apk-tools-6315575af1cfd9d8d195c6a7173b6a73ccf28f14.tar.bz2
apk-tools-6315575af1cfd9d8d195c6a7173b6a73ccf28f14.tar.xz
apk-tools-6315575af1cfd9d8d195c6a7173b6a73ccf28f14.zip
database: fix apk_db_cache_active returning true when cache not configured
this regression was caused by refactoring of the options handling into the apk_ctx struct in 354713d2, presumably a little too much innovation with sed fixes #10799
Diffstat (limited to 'src')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index 6b48bb8..a122d91 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2032,7 +2032,7 @@ void apk_db_update_directory_permissions(struct apk_database *db)
int apk_db_cache_active(struct apk_database *db)
{
- return db->ctx->cache_dir != apk_static_cache_dir;
+ return db->cache_dir != apk_static_cache_dir;
}
struct foreach_cache_item_ctx {