Apply an upstream patch to validate the dependency graph when --exists is specified
Closes: #1026781
Andrej Shadura
1 year, 3 months ago
0 | From: Ariadne Conill <ariadne@dereferenced.org> | |
1 | Date: Sun, 22 Jan 2023 10:46:27 +0000 | |
2 | Subject: cli: if --exists is specified, require the full dependency graph to validate | |
3 | ||
4 | Bug-Debian: https://bugs.debian.org/1026781 | |
5 | --- | |
6 | cli/main.c | 3 +++ | |
7 | 1 file changed, 3 insertions(+) | |
8 | ||
9 | diff --git a/cli/main.c b/cli/main.c | |
10 | index 837fa8b..99421e7 100644 | |
11 | --- a/cli/main.c | |
12 | +++ b/cli/main.c | |
13 | @@ -1039,6 +1039,9 @@ main(int argc, char *argv[]) | |
14 | if ((want_flags & PKG_STATIC) == PKG_STATIC || personality->want_default_static) | |
15 | want_client_flags |= (PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS); | |
16 | ||
17 | + if ((want_flags & PKG_EXISTS) == PKG_EXISTS) | |
18 | + want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE; | |
19 | + | |
20 | if ((want_flags & PKG_SHARED) == PKG_SHARED) | |
21 | want_client_flags &= ~(PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS); | |
22 |