Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Revert "Process the entire universe during upgrade/install"
Baptiste Daroussin committed 6 years ago
commit c6317d5bc531c1e1cf49d2ca8d7eb64a7de35152
parent e2b7ec4
1 file changed +5 -5
modified libpkg/pkg_jobs.c
@@ -1550,7 +1550,6 @@ jobs_solve_install_upgrade(struct pkg_jobs *j)
	size_t jcount = 0;
	struct job_pattern *jp;
	struct pkg_job_request *req, *rtmp;
-
	struct pkg_job_universe_item *unit, *tmp;
	unsigned flags = PKG_LOAD_BASIC|PKG_LOAD_OPTIONS|PKG_LOAD_DEPS|PKG_LOAD_REQUIRES|
			PKG_LOAD_SHLIBS_REQUIRED|PKG_LOAD_ANNOTATIONS|PKG_LOAD_CONFLICTS;
	struct pkg_jobs_install_candidate *candidates, *c;
@@ -1603,8 +1602,9 @@ jobs_solve_install_upgrade(struct pkg_jobs *j)
				jcount);
			elt_num = 0;

-
			HASH_ITER(hh, j->universe->items, unit, tmp) {
-
				pkg_jobs_universe_process(j->universe, unit->pkg);
+
			HASH_ITER(hh, j->request_add, req, rtmp) {
+
				pkg_emit_progress_tick(++elt_num, jcount);
+
				pkg_jobs_universe_process(j->universe, req->item->pkg);
			}
			pkg_emit_progress_tick(jcount, jcount);

@@ -1636,8 +1636,8 @@ jobs_solve_install_upgrade(struct pkg_jobs *j)
			/*
			 * Need to iterate request one more time to recurse depends
			 */
-
			HASH_ITER(hh, j->universe->items, unit, tmp) {
-
				pkg_jobs_universe_process(j->universe, unit->pkg);
+
			HASH_ITER(hh, j->request_add, req, rtmp) {
+
				pkg_jobs_universe_process(j->universe, req->item->pkg);
			}
		}
	}