From f809e0978ecf44ac36e4f6cdf1b4e7dc741dfa94 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 27 Jul 2022 12:17:59 -0700 Subject: [PATCH] cache: when removing a pkg from the cache, unset the cached flag --- libpkgconf/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libpkgconf/cache.c b/libpkgconf/cache.c index 6b9ca8a..38f8e8b 100644 --- a/libpkgconf/cache.c +++ b/libpkgconf/cache.c @@ -167,6 +167,7 @@ pkgconf_cache_remove(pkgconf_client_t *client, pkgconf_pkg_t *pkg) if (slot == NULL) return; + pkg->flags &= ~PKGCONF_PKG_PROPF_CACHED; *slot = NULL; qsort(client->cache_table, client->cache_count,