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
cute-signatures
Ariadne Conill 2022-02-03 22:19:16 +00:00
parent 6df225eac3
commit 6315575af1
1 changed files with 1 additions and 1 deletions

View File

@ -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 {