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
parent
6df225eac3
commit
6315575af1
|
@ -2032,7 +2032,7 @@ void apk_db_update_directory_permissions(struct apk_database *db)
|
||||||
|
|
||||||
int apk_db_cache_active(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 {
|
struct foreach_cache_item_ctx {
|
||||||
|
|
Loading…
Reference in New Issue