xbps-query: in -s do not print "[virtual]" on vpkg matches.
This commit is contained in:
parent
be1086f8fb
commit
3cc8f66f64
@ -143,22 +143,11 @@ search_pkgs_cb(struct xbps_rindex *rpi, void *arg, bool *done)
|
|||||||
free(vpkgname);
|
free(vpkgname);
|
||||||
free(tmp);
|
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])) ||
|
if ((xbps_pkgpattern_match(pkgver, sd->patterns[x])) ||
|
||||||
(strcasestr(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, pkgver);
|
||||||
prop_array_add_cstring_nocopy(sd->results, desc);
|
prop_array_add_cstring_nocopy(sd->results, desc);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user