From 43f9ca5893edc94b3eb1314a7d56a397a7ab74f7 Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Thu, 22 Nov 2012 04:18:23 -0500 Subject: pkg_depends: fix version_constraints_satisfied * with Package: a Version: 1 and Conflicts: a (<< 1) we have comparison == 0, but constraint EARLIER is not satisfied! Signed-off-by: Martin Jansa git-svn-id: http://opkg.googlecode.com/svn/trunk@645 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c index 243fac7..27ce7bb 100644 --- a/libopkg/pkg_depends.c +++ b/libopkg/pkg_depends.c @@ -464,7 +464,8 @@ int version_constraints_satisfied(depend_t * depends, pkg_t * pkg) else if((depends->constraint == LATER) && (comparison > 0)) return 1; - else if(comparison == 0) + else if((depends->constraint == EQUAL) && + (comparison == 0)) return 1; else if((depends->constraint == LATER_EQUAL) && (comparison >= 0)) -- cgit v0.9.1