xbps-repo: index-add: look for pkg in index matching arch or noarch.
This commit is contained in:
1 parent
3c379ff78e
commit
7d4ecbb0ab
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user