From 48c36602a55df4bd33b63c9f67215af40cfca121 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 11 Mar 2012 17:26:41 +0100 Subject: [PATCH] Simplify even more previous commit. --- lib/plist_match.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/plist_match.c b/lib/plist_match.c index dd39ef60..c3fb89b6 100644 --- a/lib/plist_match.c +++ b/lib/plist_match.c @@ -64,21 +64,16 @@ xbps_match_any_virtualpkg_in_rundeps(prop_array_t rundeps, { const char *vpkgver, *pkgpattern; size_t i, x; - bool found = false; for (i = 0; i < prop_array_count(provides); i++) { prop_array_get_cstring_nocopy(provides, i, &vpkgver); for (x = 0; x < prop_array_count(rundeps); x++) { prop_array_get_cstring_nocopy(rundeps, x, &pkgpattern); - if (xbps_pkgpattern_match(vpkgver, pkgpattern)) { - found = true; - break; - } + if (xbps_pkgpattern_match(vpkgver, pkgpattern)) + return true; } - if (found) - break; } - return found; + return false; } static bool