diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-10-01 13:41:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 11:40:51 +0100 |
commit | 97160f8e92af94640692846997b5f242067fb3bc (patch) | |
tree | 6b45b1a84db624277dfab046a1273d2c58557b24 /meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch | |
parent | 31fcfefbfdaa7c4c1061c5204302fb9d6fa0d1b0 (diff) | |
download | poky-97160f8e92af94640692846997b5f242067fb3bc.tar.gz |
opkg: fix version constraints in conflicts, depends, replaces
* http://code.google.com/p/opkg/issues/detail?id=94
(From OE-Core rev: 7ebce895a215b31cf01aea2ac43e554f96ef814f)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch b/meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch new file mode 100644 index 0000000000..a13d6585c3 --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From e9add8fe4a63ef14aba8bd238ddde84d5470b611 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 29 Sep 2012 18:56:01 +0200 | ||
4 | Subject: [PATCH 10/10] pkg_depends: fix version_constraints_satisfied | ||
5 | |||
6 | * with | ||
7 | Package: a | ||
8 | Version: 1 | ||
9 | and | ||
10 | Conflicts: a (<< 1) | ||
11 | we have comparison == 0, but constraint EARLIER is not satisfied! | ||
12 | |||
13 | Upstream-Status: Submitted | ||
14 | http://code.google.com/p/opkg/issues/detail?id=94 | ||
15 | |||
16 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
17 | --- | ||
18 | libopkg/pkg_depends.c | 3 ++- | ||
19 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c | ||
22 | index 3dd8240..be81b7f 100644 | ||
23 | --- a/libopkg/pkg_depends.c | ||
24 | +++ b/libopkg/pkg_depends.c | ||
25 | @@ -464,7 +464,8 @@ int version_constraints_satisfied(depend_t * depends, pkg_t * pkg) | ||
26 | else if((depends->constraint == LATER) && | ||
27 | (comparison > 0)) | ||
28 | return 1; | ||
29 | - else if(comparison == 0) | ||
30 | + else if((depends->constraint == EQUAL) && | ||
31 | + (comparison == 0)) | ||
32 | return 1; | ||
33 | else if((depends->constraint == LATER_EQUAL) && | ||
34 | (comparison >= 0)) | ||
35 | -- | ||
36 | 1.7.12 | ||
37 | |||