summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:23 (EST)
committer pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:23 (EST)
commit43f9ca5893edc94b3eb1314a7d56a397a7ab74f7 (patch)
tree9950b80a8e30cd368a349985b0d67d8316ba521d
parent932c8d8f499f26d3f7ac0b5b0307f6a886396a0d (diff)
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 <Martin.Jansa@gmail.com> git-svn-id: http://opkg.googlecode.com/svn/trunk@645 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/pkg_depends.c3
1 files changed, 2 insertions, 1 deletions
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))