summaryrefslogtreecommitdiffstats
path: root/scripts/Dpkg/Deps/Simple.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Deps/Simple.pm')
-rw-r--r--scripts/Dpkg/Deps/Simple.pm8
1 files changed, 3 insertions, 5 deletions
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;
}