forked from ariadne/pkgconf
pkg: readd cached sentinel
parent
c9831c1ed0
commit
e3d8475c36
3
pkg.c
3
pkg.c
|
@ -436,7 +436,10 @@ pkg_find(const char *name, unsigned int flags)
|
||||||
if (!(flags & PKGF_NO_CACHE))
|
if (!(flags & PKGF_NO_CACHE))
|
||||||
{
|
{
|
||||||
if ((pkg = pkg_cache_lookup(name)) != NULL)
|
if ((pkg = pkg_cache_lookup(name)) != NULL)
|
||||||
|
{
|
||||||
|
pkg->flags |= PKG_PROPF_CACHED;
|
||||||
return pkg;
|
return pkg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PKG_CONFIG_PATH has to take precedence */
|
/* PKG_CONFIG_PATH has to take precedence */
|
||||||
|
|
Loading…
Reference in New Issue