libxbps: detect and fix pkgs that depend on itself.

This commit is contained in:
Juan RP 2014-04-20 18:17:23 +02:00
parent bb491e2667
commit 96778da60c

View File

@ -348,6 +348,7 @@ find_repo_deps(struct xbps_handle *xhp,
xbps_dbg_printf_append(xhp, "[ignoring wrong dependency "
"%s (depends on itself)]\n",
reqpkg);
xbps_remove_string_from_array(pkg_rdeps_array, reqpkg);
free(pkgname);
free(reqpkgname);
continue;