From 7d4ecbb0ab1bd0530684bb52cbf3e2a4c81a6134 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 20 Aug 2012 14:58:38 +0200 Subject: [PATCH] xbps-repo: index-add: look for pkg in index matching arch or noarch. --- bin/xbps-repo/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-repo/index.c b/bin/xbps-repo/index.c index 4ab64c97..3f302782 100644 --- a/bin/xbps-repo/index.c +++ b/bin/xbps-repo/index.c @@ -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);