index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/db.c | 3 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 9e8e75bf..5765ab2c 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -437,7 +437,8 @@ alpm_list_t *_alpm_db_search(alpm_db_t *db, const alpm_list_t *needles) if(!matched) { /* check provides */ for(k = alpm_pkg_get_provides(pkg); k; k = k->next) { - if(regexec(®, k->data, 0, 0, 0) == 0) { + alpm_depend_t *provide = k->data; + if(regexec(®, provide->name, 0, 0, 0) == 0) { matched = k->data; break; } |