Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Restore previous initial guess set.
Vsevolod Stakhov committed 11 years ago
commit 0f2b5488b67fe1972283ce8f74d29de1b4d2c4d4
parent 0042fc79c39a5ee03e4cfe42f165dd2c6d639d58
1 file changed +5 -2
modified libpkg/pkg_solve.c
@@ -340,8 +340,11 @@ pkg_solve_initial_guess(struct pkg_solve_problem *problem,
			if (var->unit->next == NULL && var->unit->prev == var->unit)
				return (true);
		}
-
		else
-
			return (true);
+
		else {
+
			/* For remote packages we return true if they are upgrades for local ones */
+
			if (var->unit->next != NULL || var->unit->prev != var->unit)
+
				return (true);
+
		}
	}
	else {
		/* For all non-upgrade jobs be more conservative */