Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Recursive flag is now meaningless for install.
Vsevolod Stakhov committed 12 years ago
commit d03ad31b26f50c4c1fc433d21ac07761f84d023f
parent b819eec
2 files changed +4 -3
modified libpkg/pkg_jobs.c
@@ -1303,8 +1303,7 @@ jobs_solve_install(struct pkg_jobs *j)
				else {
					pkg_get(pkg, PKG_ORIGIN, &origin);
					/* TODO: use repository priority here */
-
					if (find_remote_pkg(j, origin, MATCH_EXACT, true,
-
							j->flags & PKG_FLAG_RECURSIVE) == EPKG_FATAL)
+
					if (find_remote_pkg(j, origin, MATCH_EXACT, true, true) == EPKG_FATAL)
						pkg_emit_error("No packages matching '%s', has been found in "
								"the repositories", origin);
				}
modified libpkg/pkg_solve.c
@@ -294,7 +294,9 @@ pkg_solve_sat_problem(struct pkg_solve_problem *problem)
	bool guessed = false;
	struct pkg_solve_variable *var, *tvar;

-
	assert(problem->rules_count > 0);
+
	/* Obvious case */
+
	if (problem->rules_count == 0)
+
		return (true);

	/* Initially propagate explicit rules */
	pkg_solve_propagate_pure(problem);