cli: if --exists is specified, require the full dependency graph to validate

stable/1.8.x
Ariadne Conill 2023-01-22 10:46:27 +00:00
parent 5436648cd4
commit 20db9ffcbe
1 changed files with 3 additions and 0 deletions

View File

@ -1039,6 +1039,9 @@ main(int argc, char *argv[])
if ((want_flags & PKG_STATIC) == PKG_STATIC || personality->want_default_static)
want_client_flags |= (PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS);
if ((want_flags & PKG_EXISTS) == PKG_EXISTS)
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
if ((want_flags & PKG_SHARED) == PKG_SHARED)
want_client_flags &= ~(PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS);