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 {