pkg: readd cached sentinel

feature/tap-sh
William Pitcock 2013-02-25 22:47:32 -06:00
parent c9831c1ed0
commit e3d8475c36
1 changed files with 3 additions and 0 deletions

3
pkg.c
View File

@ -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");