forked from ariadne/pkgconf
pkg: readd cached sentinel
parent
c9831c1ed0
commit
e3d8475c36
3
pkg.c
3
pkg.c
|
@ -436,8 +436,11 @@ 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 */
|
||||||
env_path = getenv("PKG_CONFIG_PATH");
|
env_path = getenv("PKG_CONFIG_PATH");
|
||||||
|
|
Loading…
Reference in New Issue