X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=meta-openvuplus%2Frecipes-devtools%2Fopkg%2Fopkg%2F0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch;h=575c1e1dcd1e900fddff4f32b3e73357503c45f8;hp=5808c92173e9b1a55516d9bbd5a7fa1b483f28ed;hb=b7c8403e5804f3cd2af3a78642142a082f22fbb5;hpb=c363a61977d38b355867dbb58ff9c6c9710d53b5 diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch index 5808c92..575c1e1 100644 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch +++ b/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch @@ -1,11 +1,23 @@ +From b925a520a63fb291675f707e602d04295236c85b Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter +Date: Thu, 17 May 2012 01:17:52 +0200 +Subject: [PATCH 07/10] pkg_hash_fetch_conflicts: move iteration over + conflicts to subroutine + +Signed-off-by: Andreas Oberritter +--- + libopkg/pkg_depends.c | 46 ++++++++++++++++++++++++---------------------- + 1 file changed, 24 insertions(+), 22 deletions(-) + diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index 512d17f..ca3acbe 100644 +index 6ff75f1..1999b64 100644 --- a/libopkg/pkg_depends.c +++ b/libopkg/pkg_depends.c -@@ -369,40 +369,22 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg) - } +@@ -284,39 +284,22 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg) + } +- -pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) +static void __pkg_hash_fetch_conflicts(pkg_t * pkg, pkg_vec_t * installed_conflicts) { @@ -15,7 +27,6 @@ index 512d17f..ca3acbe 100644 depend_t ** possible_satisfiers; depend_t * possible_satisfier; int i, j, k; -- int count; - abstract_pkg_t * ab_pkg; pkg_t **pkg_scouts; pkg_t *pkg_scout; @@ -35,11 +46,10 @@ index 512d17f..ca3acbe 100644 - } - installed_conflicts = pkg_vec_alloc(); - -- count = pkg->conflicts_count; - - + if(!conflicts) -+ return; ++ return; /* foreach conflict */ for(i = 0; i < pkg->conflicts_count; i++){ @@ -47,7 +57,7 @@ index 512d17f..ca3acbe 100644 possible_satisfiers = conflicts->possibilities; /* foreach possible satisfier */ -@@ -438,11 +420,30 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) +@@ -352,11 +335,30 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) } conflicts++; } @@ -79,3 +89,6 @@ index 512d17f..ca3acbe 100644 } int version_constraints_satisfied(depend_t * depends, pkg_t * pkg) +-- +1.7.9.5 +