From 3cc8f66f6421135addaee326fe7c53e4c7e441f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Feb 2013 14:25:15 +0100 Subject: [PATCH] xbps-query: in -s do not print "[virtual]" on vpkg matches. --- bin/xbps-query/search.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/bin/xbps-query/search.c b/bin/xbps-query/search.c index f56bd421..4678b8dd 100644 --- a/bin/xbps-query/search.c +++ b/bin/xbps-query/search.c @@ -143,22 +143,11 @@ search_pkgs_cb(struct xbps_rindex *rpi, void *arg, bool *done) free(vpkgname); free(tmp); } - if (vpkgfound) { - prop_string_t pstr; - - pstr = prop_string_create(); - prop_string_append_cstring(pstr, pkgver); - prop_string_append_cstring(pstr, " [virtual]"); - prop_array_add(sd->results, pstr); - prop_object_release(pstr); - prop_array_add_cstring_nocopy(sd->results, desc); - } if ((xbps_pkgpattern_match(pkgver, sd->patterns[x])) || (strcasestr(pkgver, sd->patterns[x])) || - (strcasestr(desc, sd->patterns[x]))) { + (strcasestr(desc, sd->patterns[x])) || vpkgfound) { prop_array_add_cstring_nocopy(sd->results, pkgver); prop_array_add_cstring_nocopy(sd->results, desc); - continue; } } }