File: 0004-Fix-spurious-warnings-about-unknown-virtual-dependen.patch

package info (click to toggle)
insserv 1.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 900 kB
  • sloc: ansic: 5,163; sh: 2,268; perl: 563; makefile: 201
file content (24 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Dmitry Bogatov <KAction@debian.org>
Date: Wed, 17 Jul 2019 18:45:45 +0000
Subject: Fix spurious warnings about unknown virtual dependencies

Do not emit warnings about unknown virtual($foo) facility soft
dependency. It is perfectly fine to have soft (should) dependency
on facility, provided by currently not installed package.

Closes: #932199
---
 insserv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/insserv.c
+++ b/insserv.c
@@ -472,7 +472,7 @@
 		    break;
 		}
 	    }
-            if (! can_expand_name)
+            if (! can_expand_name && (bit & REQ_MUST))
                warn("warning: could not find all dependencies for %s\n", token);
 
 	    break;