From 396478fcc2ed755e02e2573c8be89e9a98aec512 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 20:40:30 +0200 Subject: Merging upstream version 1.22.5. Signed-off-by: Daniel Baumann --- scripts/Dpkg/Deps/Simple.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts/Dpkg/Deps') diff --git a/scripts/Dpkg/Deps/Simple.pm b/scripts/Dpkg/Deps/Simple.pm index a2ab2b1..e4888ed 100644 --- a/scripts/Dpkg/Deps/Simple.pm +++ b/scripts/Dpkg/Deps/Simple.pm @@ -438,12 +438,10 @@ sub implies { if (defined $implication) { if (not defined $res) { $res = $implication; + } elsif ($implication) { + $res = 1; } else { - if ($implication) { - $res = 1; - } else { - $res = 0; - } + $res = 0; } last if defined $res and $res == 1; } -- cgit v1.2.3