File: fix-exists-print-errors.patch

package info (click to toggle)
pkgconf 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,820 kB
  • sloc: ansic: 8,111; sh: 6,689; makefile: 247; python: 157
file content (23 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Sun, 22 Jan 2023 10:46:27 +0000
Subject: cli: if --exists is specified, require the full dependency graph to validate

Bug-Debian: https://bugs.debian.org/1026781
---
 cli/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cli/main.c b/cli/main.c
index 837fa8b..99421e7 100644
--- a/cli/main.c
+++ b/cli/main.c
@@ -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);