diff --git a/src/aur.c b/src/aur.c index 8192606..8a33b85 100644 --- a/src/aur.c +++ b/src/aur.c @@ -657,15 +657,19 @@ static unsigned int aur_request_search (alpm_list_t **targets, CURL *curl) for (const alpm_list_t *p = pkgs; p; p = alpm_list_next (p)) { bool match = true; const aurpkg_t *pkg = p->data; - const char *pkgname = aur_pkg_get_string_value (pkg, AUR_NAME); - const char *pkgdesc = aur_pkg_get_string_value (pkg, AUR_DESCRIPTION); - for (const alpm_list_t *t = *targets; t; t = alpm_list_next (t)) { - if (strcasestr (pkgname, t->data) == NULL && - (!pkgdesc || strcasestr (pkgdesc, t->data) == NULL)) { - match = false; - break; + + if (!config.aur_maintainer) { + const char *pkgname = aur_pkg_get_string_value (pkg, AUR_NAME); + const char *pkgdesc = aur_pkg_get_string_value (pkg, AUR_DESCRIPTION); + for (const alpm_list_t *t = *targets; t; t = alpm_list_next (t)) { + if (strcasestr (pkgname, t->data) == NULL && + (!pkgdesc || strcasestr (pkgdesc, t->data) == NULL)) { + match = false; + break; + } } } + if (match) { pkgs_found++; print_or_add_result (pkg, R_AUR_PKG);