Revert "main: --exists should search Requires.private."
This reverts commit 980644230d
.
pull/36/head
parent
69a6331cbe
commit
301a46368e
9
main.c
9
main.c
|
@ -43,7 +43,6 @@
|
|||
#define PKG_LIST (1<<24)
|
||||
#define PKG_HELP (1<<25)
|
||||
#define PKG_PRINT_ERRORS (1<<26)
|
||||
#define PKG_EXISTS (1<<27)
|
||||
|
||||
static unsigned int global_traverse_flags = PKGF_NONE;
|
||||
|
||||
|
@ -426,7 +425,7 @@ main(int argc, char *argv[])
|
|||
{ "cflags", no_argument, &want_flags, PKG_CFLAGS|PKG_PRINT_ERRORS, },
|
||||
{ "modversion", no_argument, &want_flags, PKG_MODVERSION|PKG_PRINT_ERRORS, },
|
||||
{ "variable", required_argument, NULL, 7, },
|
||||
{ "exists", no_argument, &want_flags, PKG_EXISTS, },
|
||||
{ "exists", no_argument, NULL, 8, },
|
||||
{ "print-errors", no_argument, &want_flags, PKG_PRINT_ERRORS, },
|
||||
{ "short-errors", no_argument, NULL, 10, },
|
||||
{ "maximum-traverse-depth", required_argument, NULL, 11, },
|
||||
|
@ -536,12 +535,6 @@ main(int argc, char *argv[])
|
|||
if ((want_flags & PKG_STATIC) == PKG_STATIC)
|
||||
global_traverse_flags |= (PKGF_SEARCH_PRIVATE | PKGF_MERGE_PRIVATE_FRAGMENTS);
|
||||
|
||||
if ((want_flags & PKG_EXISTS) == PKG_EXISTS)
|
||||
global_traverse_flags |= (PKGF_SEARCH_PRIVATE);
|
||||
|
||||
if ((want_flags & PKG_CFLAGS) == PKG_CFLAGS)
|
||||
global_traverse_flags |= (PKGF_SEARCH_PRIVATE);
|
||||
|
||||
if ((want_flags & PKG_ENV_ONLY) == PKG_ENV_ONLY)
|
||||
global_traverse_flags |= PKGF_ENV_ONLY;
|
||||
|
||||
|
|
Loading…
Reference in New Issue