The following commit has been merged in the master branch:
commit 3b566810a1227cbfe46173dca05a303ffd922d1d
Author: Raphaël Hertzog <[email protected]>
Date: Mon Oct 5 21:35:25 2009 +0200
Dpkg::Deps::version_implies(): fix to return undef with invalid versions
The 0 value means that the implication is logically disproved. We wanted
to express that we don't know anything since the version parameter is
not a valid version and thus can't be compared.
diff --git a/scripts/Dpkg/Deps.pm b/scripts/Dpkg/Deps.pm
index 69b1cc6..822b0cc 100644
--- a/scripts/Dpkg/Deps.pm
+++ b/scripts/Dpkg/Deps.pm
@@ -150,8 +150,8 @@ sub version_implies {
my ($rel_p, $v_p, $rel_q, $v_q) = @_;
# If versions are not valid, we can't decide of any implication
- return 0 unless ref($v_p) and $v_p->isa("Dpkg::Version");
- return 0 unless ref($v_q) and $v_q->isa("Dpkg::Version");
+ return undef unless ref($v_p) and $v_p->isa("Dpkg::Version");
+ return undef unless ref($v_q) and $v_q->isa("Dpkg::Version");
# q wants an exact version, so p must provide that exact version. p
# disproves q if q's version is outside the range enforced by p.
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]