xbps-repo: index-add: look for pkg in index matching arch or noarch.

This commit is contained in:
Juan RP 2012-08-20 14:58:38 +02:00
parent 3c379ff78e
commit 7d4ecbb0ab

View File

@ -173,7 +173,7 @@ repo_index_add(struct xbps_handle *xhp, int argc, char **argv)
* pass to the next one.
*/
curpkgd =
xbps_find_pkg_in_array_by_name(xhp, idx, pkgname, NULL);
xbps_find_pkg_in_array_by_name(xhp, idx, pkgname, arch);
if (curpkgd == NULL) {
if (errno && errno != ENOENT) {
prop_object_release(newpkgd);