forked from ariadne/pkgconf
cli: remove package count restriction from --modversion
Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
parent
fe69ccc6b9
commit
95086643fa
|
@ -1119,7 +1119,6 @@ main(int argc, char *argv[])
|
|||
(want_flags & PKG_REQUIRES_PRIVATE) == PKG_REQUIRES_PRIVATE ||
|
||||
(want_flags & PKG_PROVIDES) == PKG_PROVIDES ||
|
||||
(want_flags & PKG_VARIABLES) == PKG_VARIABLES ||
|
||||
(want_flags & PKG_MODVERSION) == PKG_MODVERSION ||
|
||||
(want_flags & PKG_PATH) == PKG_PATH ||
|
||||
want_variable != NULL))
|
||||
{
|
||||
|
@ -1127,6 +1126,10 @@ main(int argc, char *argv[])
|
|||
maximum_traverse_depth = 1;
|
||||
}
|
||||
|
||||
/* we also want to walk only the flattened dependencies if we are requesting --modversion. */
|
||||
if ((want_flags & PKG_MODVERSION) == PKG_MODVERSION)
|
||||
maximum_traverse_depth = 1;
|
||||
|
||||
if (getenv("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS") != NULL)
|
||||
want_flags |= PKG_KEEP_SYSTEM_CFLAGS;
|
||||
|
||||
|
|
Loading…
Reference in New Issue